FamilyItemFactory.NewLinearDimension(View, Line, ReferenceArray, DimensionType)
Method
Description:
Creates a new linear dimension object using the specified dimension type.
Creates a new linear dimension object using the specified dimension type.
Syntax
public Dimension NewLinearDimension(
View view,
Line line,
ReferenceArray references,
DimensionType dimensionType
)
Parameters
Parameter | Type | Description |
---|---|---|
view | View | The view in which the dimension is to be visible. |
line | Line | The extension line of the dimension. |
references | ReferenceArray | An array of geometric references to which the dimension is to be bound. You must supply at least two references, and all references supplied must be parallel to each other and perpendicular to the extension line. |
dimensionType | DimensionType | The dimension style to be used for the dimension. |
Return Value
Type | Description |
---|---|
Dimension | If creation was successful the new linear dimension is returned, otherwise an exception with failure information will be thrown. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when any input argument is. |
ArgumentException | Thrown when the argument is invalid. |
InvalidOperationException | Thrown when the creation failed. |