|
Description
|
Returns a reference to a collection of "DimStyle" objects. Each object corresponds to an entry of the Dimension Style table (DIMSTYLE) of the DXF file.
|
Syntax Visual Basic
|
[form.]DXFReader.DimStyles
|
|
Visual C++
|
C_Collection DXFReader.GetDimStyles();
|
|
Delphi
|
property DimStyles: _Collection;
|
|
C#
|
VBA.Collection DXFReader.DimStyles;
|
|
Remarks
|
Use the DimStyles collection to retrieve or remove an individual DimStyle object.
The methods of the DimStyles collection are:
| Count | Counts the defined DimStyles | | Remove | Removes a DimStyle object from the DimStyles collection |
To count all the objects of the DimStyles collection use the following code:
Dim NDimStyles As Long
NDimStyles = DXFReader1.DimStyles.Count
To remove a DimStyle object, for example the first, from the DimStyles collection use the following code:
DXFReader1.DimStyles.Remove (1)
All of the properties for the DimStyle object are listed in the following table:
| Property | Data Type | Description |
| | DIMTMOVE | Integer | | | DIMLWE | Integer | | | DIMLWD | Integer | | | DIMLUNIT | Integer | | | DIMLDRBLK | String | | | DIMDSEP | Integer | | | DIMAZIN | Integer | | | DIMATFIT | Integer | | | DIMALTRND | Single | | | DIMADEC | Integer | | | Handle | String | | | Flag | Integer | Standard flag values | | DimStyleName | String | Dimension style name | | DIMPOST | String | | | DIMAPOST | String | | | DIMBLK | String | | | DIMBLK1 | String | | | DIMBLK2 | String | | | DIMSCALE | Single | | | DIMASZ | Single | | | DIMEXO | Single | | | DIMDLI | Single | | | DIMEXE | Single | | | DIMRND | Single | | | DIMDLE | Single | | | DIMTP | Single | | | DIMTM | Single | | | DIMTXT | Single | | | DIMCEN | Single | | | DIMTSZ | Single | | | DIMALTF | Single | | | DIMLFAC | Single | | | DIMTVP | Single | | | DIMTFAC | Single | | | DIMGAP | Single | | | DIMTOL | Integer | | | DIMLIM | Integer | | | DIMTIH | Integer | | | DIMTOH | Integer | | | DIMSE1 | Integer | | | DIMSE2 | Integer | | | DIMTAD | Integer | | | DIMZIN | Integer | | | DIMALT | Long | | | DIMALTD | Long | | | DIMTOFL | Long | | | DIMSAH | Long | | | DIMTIX | Long | | | DIMSOXD | Long | | | DIMDLRD | Long | | | DIMCLRE | Long | | | DIMCLRT | Long | | | DIMUNIT | Long | | | DIMDEC | Long | | | DIMTDEC | Long | | | DIMALTU | Long | | | DIMALTTD | Long | | | DIMTXSTY | Long | | | DIMAUNIT | Long | | | DIMJUST | Integer | | | DIMSD1 | Integer | | | DIMSD2 | Integer | | | DIMTOLJ | Integer | | | DIMTZIN | Integer | | | DIMALTZ | Integer | | | DIMALTTZ | Integer | | | DIMFIT | Integer | | | DIMUPT | Integer | |
The code below lists the contents of the DIMSTYLE table of e DXF file:
Dim DimStyle as Object
With DXFReader1
For Each DimStyle In .DimStyles
Printer.Print DimStyle.DimStyleName
Next DimStyle
End With
See the Autodesk DXF Reference for more information.
|
|
Data Type
|
Collection
|