Sets the elements which the dimension will witness.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2014
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- elementsToDimension
- Type: System.Collections.GenericICollectionElementId
The elements which the dimension will witness.
Remarks
The dimension will automatically find geometric references in the elements.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentException | some elements do not match the reference category required by the MultiReferenceAnnotationType. |
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |
Autodesk.Revit.ExceptionsInvalidOperationException | The MultiReferenceAnnotationType assigned to the options can't create MultiReferenceAnnotations by element. |