Class DimensionBlock
Holds methods to build the dimension blocks.
Inheritance
Inherited Members
Namespace: netDxf.Entities
Assembly: CADability.dll
Syntax
public static class DimensionBlock
Methods
| Improve this Doc View SourceBuild(AlignedDimension, String)
Creates a block that represents the drawing of the specified dimension.
Declaration
public static Block Build(AlignedDimension dim, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| AlignedDimension | dim | AlignedDimension from which the block will be created. |
| System.String | name | The blocks name. |
Returns
| Type | Description |
|---|---|
| Block | A block that represents the specified dimension. |
Remarks
The block's name is irrelevant when the dimension belongs to a document,
it will be automatically renamed to accommodate to the nomenclature of the DXF.
The dimension block creation only supports a limited number of DimensionStyle properties.
Also the list of DimensionStyleOverride associated with the specified dimension will be applied where necessary.
Build(Angular2LineDimension, String)
Creates a block that represents the drawing of the specified dimension.
Declaration
public static Block Build(Angular2LineDimension dim, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Angular2LineDimension | dim | Angular2LineDimension from which the block will be created. |
| System.String | name | The blocks name. |
Returns
| Type | Description |
|---|---|
| Block | A block that represents the specified dimension. |
Remarks
The block's name is irrelevant when the dimension belongs to a document,
it will be automatically renamed to accommodate to the nomenclature of the DXF.
The dimension block creation only supports a limited number of DimensionStyle properties.
Also the list of DimensionStyleOverride associated with the specified dimension will be applied where necessary.
Build(Angular3PointDimension, String)
Creates a block that represents the drawing of the specified dimension.
Declaration
public static Block Build(Angular3PointDimension dim, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Angular3PointDimension | dim | Angular3PointDimension from which the block will be created. |
| System.String | name | The blocks name. |
Returns
| Type | Description |
|---|---|
| Block | A block that represents the specified dimension. |
Remarks
The block's name is irrelevant when the dimension belongs to a document,
it will be automatically renamed to accommodate to the nomenclature of the DXF.
The dimension block creation only supports a limited number of DimensionStyle properties.
Also the list of DimensionStyleOverride associated with the specified dimension will be applied where necessary.
Build(DiametricDimension, String)
Creates a block that represents the drawing of the specified dimension.
Declaration
public static Block Build(DiametricDimension dim, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| DiametricDimension | dim | DiametricDimension from which the block will be created. |
| System.String | name | The blocks name. |
Returns
| Type | Description |
|---|---|
| Block | A block that represents the specified dimension. |
Remarks
The block's name is irrelevant when the dimension belongs to a document,
it will be automatically renamed to accommodate to the nomenclature of the DXF.
The dimension block creation only supports a limited number of DimensionStyle properties.
Also the list of DimensionStyleOverride associated with the specified dimension will be applied where necessary.
Build(Dimension)
Creates a block that represents the drawing of the specified dimension.
Declaration
public static Block Build(Dimension dim)
Parameters
| Type | Name | Description |
|---|---|---|
| Dimension | dim | Dimension from which the block will be created. |
Returns
| Type | Description |
|---|---|
| Block | A block that represents the specified dimension. |
Remarks
By the fault the block will have the name "DimBlock". The block's name is irrelevant when the dimension belongs to a document,
it will be automatically renamed to accommodate to the nomenclature of the DXF.
The dimension block creation only supports a limited number of DimensionStyle properties.
Also the list of DimensionStyleOverride associated with the specified dimension will be applied where necessary.
Build(Dimension, String)
Creates a block that represents the drawing of the specified dimension.
Declaration
public static Block Build(Dimension dim, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| Dimension | dim | Dimension from which the block will be created. |
| System.String | name | The blocks name. |
Returns
| Type | Description |
|---|---|
| Block | A block that represents the specified dimension. |
Remarks
The block's name is irrelevant when the dimension belongs to a document,
it will be automatically renamed to accommodate to the nomenclature of the DXF.
The dimension block creation only supports a limited number of DimensionStyle properties.
Also the list of DimensionStyleOverride associated with the specified dimension will be applied where necessary.
Build(LinearDimension, String)
Creates a block that represents the drawing of the specified dimension.
Declaration
public static Block Build(LinearDimension dim, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| LinearDimension | dim | LinearDimension from which the block will be created. |
| System.String | name | The blocks name. |
Returns
| Type | Description |
|---|---|
| Block | A block that represents the specified dimension. |
Remarks
The block's name is irrelevant when the dimension belongs to a document,
it will be automatically renamed to accommodate to the nomenclature of the DXF.
The dimension block creation only supports a limited number of DimensionStyle properties.
Also the list of DimensionStyleOverride associated with the specified dimension will be applied where necessary.
Build(OrdinateDimension, String)
Creates a block that represents the drawing of the specified dimension.
Declaration
public static Block Build(OrdinateDimension dim, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| OrdinateDimension | dim | OrdinateDimension from which the block will be created. |
| System.String | name | The blocks name. |
Returns
| Type | Description |
|---|---|
| Block | A block that represents the specified dimension. |
Remarks
The block's name is irrelevant when the dimension belongs to a document,
it will be automatically renamed to accommodate to the nomenclature of the DXF.
The dimension block creation only supports a limited number of DimensionStyle properties.
Also the list of DimensionStyleOverride associated with the specified dimension will be applied where necessary.
Build(RadialDimension, String)
Creates a block that represents the drawing of the specified dimension.
Declaration
public static Block Build(RadialDimension dim, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| RadialDimension | dim | RadialDimension from which the block will be created. |
| System.String | name | The blocks name. |
Returns
| Type | Description |
|---|---|
| Block | A block that represents the specified dimension. |
Remarks
The block's name is irrelevant when the dimension belongs to a document,
it will be automatically renamed to accommodate to the nomenclature of the DXF.
The dimension block creation only supports a limited number of DimensionStyle properties.
Also the list of DimensionStyleOverride associated with the specified dimension will be applied where necessary.