<Code Lib>
2022 Method
Changes 0
M

RevitLinkType.Create(Document, ExternalResourceReference, RevitLinkOptions)

Description:
Creates a new Revit link type from an external resource reference and loads the linked document.
Remarks:

This function regenerates the input document.

Only the WorksetConfiguration information in the options argument will be used. The path type information will be ignored.

Overloads (2):
Create(Document,ExternalResourceReference,RevitLinkOptions)

public static LinkLoadResult Create(
	Document document,
	ExternalResourceReference resourceReference,
	RevitLinkOptions options
)

Return Value LinkLoadResult An object containing the results of creating and loading the Revit link type. It contains the ElementId of the new link.

Loading…