RadialDimension.Create
Description:
Creates a new instance of an Radial Dimension element within the project.
Creates a new instance of an Radial Dimension element within the project.
public static RadialDimension Create(
Document document,
View dbView,
Reference arcRef,
bool isDiameter
)
-
documentThe document where new Radial Dimension is created.
-
dbViewThe view in which the Radial Dimension will appear.
-
arcRefThe reference which the Radial Dimension will witness.
-
BooleanisDiameterSet to true to create a Diameter dimension
Return Value
RadialDimension
The newly created Radial Dimension instance, or if the operation fails.
-
Reference should be an Arc reference and the origin should lie within the Arc.
-
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.