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