Changes a particular reference view (such as a reference section or reference callout) to refer to a different View.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static void ChangeReferencedView( Document document, ElementId referenceId, ElementId desiredViewId )
Parameters
- document Document
- The document containing the elements.
- referenceId ElementId
- The reference view that will be changed to refer to a different View.
- desiredViewId ElementId
- The id of the View that the reference section or callout will refer to.
Exceptions
Exception | Condition |
---|---|
ArgumentException | referenceId is not a valid reference view. -or- desiredViewId is not a view that can be referenced by referenceId. |
ArgumentNullException | A non-optional argument was null |