2020 Method
Changes 0
M

CADLinkType.LoadFrom

Description:
Loads or reloads the DWG link from the given external resource reference.
Remarks:

If the link is currently loaded, any changes made in-memory to the link's shared coordinates will be discarded.

Graphic overrides will be preserved on reload.

If the original view used to bring in this link has been deleted, Revit will cancel the load.

If there is already another link, not current link itself, using the given external resource reference, the loading will not happen. The element id of the link using the external resource reference will be contained in the LinkLoadResult.

This function checks the actual resource path that the IExternalResourceServer returns. If the link type identified by the resource path doesn't match DWG, the load will not proceed.

Overloads (2):
LoadFrom(ExternalResourceReference)
public LinkLoadResult LoadFrom(
	ExternalResourceReference resourceReference
)
Return Value LinkLoadResult An object containing the ElementId of the link and an enum value indicating any errors which occurred while trying to load.