RVTDocs.com

RevitLinkInstance.MoveOriginToHostOrigin

Method
Description:
Moves this link instance so that the internal origin of the linked document is aligned to the internal origin of the host document. This is a one-time movement and does not set up any shared coordinates relationship.
Remarks:
This operation can only be performed on instances of top-level links. The internal origin is not necessarily the same location as the Project Base Point. See MoveBasePointToHostBasePoint(Boolean).
Syntax
public void MoveOriginToHostOrigin(
	bool resetToOriginalRotation
)
Parameters
Parameter Type Description
resetToOriginalRotation Boolean <p> Sets to true if: </p><ul><li> restoring the original insertion angle of the link instance after it is moved if there was a rotation \ mirror transform on the link instance. </li><li> there was no a rotation \ mirror transform on the link instance. </li></ul><p> Sets to false to retain the current angle of the link instance after it is moved if there was a rotation \ mirror transform on the link instance. </p>
Return Value
Exceptions
Exception Condition
InvalidOperationException This RevitLinkInstance is not an instance of a loaded RevitLinkType. -or- This RevitLinkInstance is not an instance of a top-level RevitLinkType. -or- The operation is not permitted because the element is pinned.