<Code Lib>
2020 Method
Changes 0
M

RevitLinkType.LoadFrom(ExternalResourceReference, WorksetConfiguration)

Description:
Loads or reloads the Revit link. The link will be loaded from the location given in the input ExternalResourceReference.
Remarks:

If the link is currently loaded, Revit must unload the link before reloading it. Any changes made in-memory to the link's shared coordinates will be discarded.

Revit does not try to validate that the input represents the "same" document. You can load a completely different document, which may invalidate references to linked elements.

This function regenerates the document.

The document's Undo history will be cleared by this command. As a result, this command and others executed before it cannot be undone. All transaction phases (e.g. transactions transaction groups and sub-transaction) that were explicitly started must be finished prior to calling this method.

Overloads (2):
LoadFrom(ExternalResourceReference,WorksetConfiguration)

public LinkLoadResult LoadFrom(
	ExternalResourceReference resourceReference,
	WorksetConfiguration config
)

Return Value LinkLoadResult An object containing the ElementId of the link and an enum value indicating any errors which occurred while trying to load.

Loading…