RevitLinkTypeSavePositions Method

Saves shared coordinates changes back to the linked document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntax
public bool SavePositions(
	ISaveSharedCoordinatesCallback callback
)

Parameters

callback  ISaveSharedCoordinatesCallback
A callback object to resolve situations when Revit encounters modified links.

Return Value

Boolean
True if we saved the link or if there were no changes to save. False if the operation failed.
Exceptions
ExceptionCondition
InvalidOperationException 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.
Remarks
While this operation does not clear the document's undo history, you will not be able to undo this specific action, since it saves the link's shared coordinates changes to disk.

This operation is blocked for Revit links that originate from a scenario. Modifications to link positions or shared coordinates cannot be persisted to scenario-based Revit links.

See Also