ItemFactoryBase.NewDimension(View, Line, ReferenceArray, DimensionType)
Method
Description:
Creates a new linear dimension object using the specified dimension style.
Creates a new linear dimension object using the specified dimension style.
Syntax
public Dimension NewDimension(
View view,
Line line,
ReferenceArray references,
DimensionType dimensionType
)
Parameters
Parameter | Type | Description |
---|---|---|
view | View | The view in which the dimension is to be visible. The view must be <span class="keyword"><span data-languagespecifictext="cpp=nullptr|vb=Nothing|nu=null" id="LST6EC65EAB_1"></span></span> if the document is in <span class="noLink">[!:Autodesk::Revit::DB::SketchEditScope]</span>. |
line | Line | The line drawn for the dimension. |
references | ReferenceArray | An array of geometric references to which the dimension is to be bound. |
dimensionType | DimensionType | The dimension style to be used for the dimension. |
Return Value
Type | Description |
---|---|
Dimension | If successful a new dimension object, otherwise . |
Exceptions
Exception | Condition |
---|---|
ArgumentException | Thrown when references are not geometric references. |