<Code Lib>
2020 Method
Changes 0
M

RevitLinkType.GetTopLevelLink(Document, ModelPath)

Description:
Returns the ElementId of the (top-level) linked model with the given path.
Remarks:
This function will not return nested links.
Overloads (2):
GetTopLevelLink(Document,ModelPath)

public static ElementId GetTopLevelLink(
	Document document,
	ModelPath path
)

Return Value ElementId The id of the link with the given path, or InvalidElementId if there is no top-level link at that path.

Loading…