2027 Method
Changes 0
M

RevitLinkType.Unload

Description:
Unloads the Revit link.
Remarks:

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.

This operation is blocked for Revit links that originate from a scenario. Scenario-based Revit links cannot be unloaded independently as their lifecycle is tied to the scenario connection.

public void Unload(
	ISaveSharedCoordinatesCallback callback
)
  • callback
    A callback indicating what to do if Revit encounters links which have changes in shared coordinates. If null, Revit will not save any shared coordinates changes to the link before unloading.
  • The function is not permitted during dynamic update.
  • This RevitLinkType is not a top-level link. -or- This operation is not supported for scenario-based Revit links. Scenario-based Revit links are read-only and their source is managed by the scenario system. -or- Revit could not save shared coordinates changes to the link or one of its nested links. -or- There is a transaction phase left open (such as a transaction, sub-transaction of transaction group) at the time of invoking this method. -or- The document is read-only. It cannot be modified. -or- The document is in an edit mode or is in family mode. -or- Revit cannot link a cloud model to non-cloud model
  • Could be for any of the reasons that failed on service side.
  • User is not signed in with Autodesk id.
  • User is not authorized to access the specified cloud model.