AngularDimension.Create
Description:
Creates a new instance of an Angular Dimension element within the project.
Creates a new instance of an Angular Dimension element within the project.
public static AngularDimension Create(
Document document,
View dbView,
Arc arc,
IList<Reference> references,
DimensionType dimensionStyle
)
-
documentThe document where new Angular Dimension is created.
-
dbViewThe view in which the Angular Dimension will appear.
-
arcArc for the Angular Dimension.
-
IList<Reference>referencesThe references which the Angular Dimension will witness.
-
dimensionStyleDimension Style.
Return Value
AngularDimension
The newly created Angular Dimension instance, or if the operation fails.
-
References should be: at least two, non parallel and rays of the arc passed.
-
A non-optional argument was null
-
The document is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document is being loaded, or is in the midst of another sensitive process.
-
The document has no open transaction.