Reload Method (CADLinkOptions)


Loads or reloads the link from its currently-stored location. If the link is an external resource, Revit will contact the IExternalResourceServer to get the latest version of the link.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.0.0.420)
Since: 2018

Syntax

C#
public LinkLoadResult Reload(
	CADLinkOptions options
)
Visual Basic
Public Function Reload ( _
	options As CADLinkOptions _
) As LinkLoadResult
Visual C++
public:
LinkLoadResult^ Reload(
	CADLinkOptions^ options
)

Parameters

options
Type: Autodesk.Revit.DB CADLinkOptions
Options for reloading the link. Options include the ability to preserve graphic overrides on reload.

Return Value

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

Remarks

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

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL
Autodesk.Revit.Exceptions InvalidOperationException This CADLinkType represents an import and cannot be used as a link. -or- The element "this CADLinkType" is in a read-only document.

See Also