Object 33 "Dimension Text" (Entities) Changed in Version 2021.0

www.CAD6.com

Data Block Sequence

Data Block 000( nx1, ny1 )

- First dimension number definition

Data Block 000( nx2, ny2 )

- Second dimension number definition

Data Block 110( Text )

- Text (ElemCount = MKI_LENGTH_TEXT_SHORT)

Data Block 110( Tolerance1 )

- Upper tolerance (ElemCount = MKI_LENGTH_TEXT_SHORT)

Data Block 110( Tolerance2 )

- Lower tolerance (ElemCount = MKI_LENGTH_TEXT_SHORT)

Data Block 230( ... )

- Dimension text parameters

 

The points (nx1,ny1) and (nx2,ny2) determine the position and, if applicable, the orientation of the dimension number. The dimension text is stored in Text.

 

Attributes New in Version 2021.0

A dimension text may contain attribute data blocks (see MKI_BLOCK_ATTRIBUTE) only of type "local". They must be placed behind all other datablocks. Attributes of types "outline" and "point" must not exist. The total number of local attributes per object is limited to MKI_ATTRIBS_PER_OBJECT.

 

Specific Usage of Data Block 230

|BlockType|

0,230,0,0,

|TextFont|

0,0,400,"DINDRAFT",

|TextXProperty|

1,1,0,0.0/0.0/0.0,0.0/0.0/0.0,0.0,0,0,

|TextSize1,TextSize2|

5.0,3.5,

|CharDistance,TabDistance,TextMode,TextOrder|

0,4,1,0,

|Precision,Refresh,Rotate|

2,0,1,

|System|

0;

 

This dimension text will be lettered with the font "DINDRAFT", using pen 1. The dimension text has a text size of 5 mm. The dimension text is rotated.

 

 

The image above shows a dimension text created using the settings described above. The points (nx1,ny1) and (nx2,ny2) place and rotate the dimension number.

 

Interface Command Sequence

MKI_ObjectOpen, Type = MKI_OBJ_DTEXT

MKI_ObjectAddPoint, Type = MKI_DB_POINT_ANY

MKI_ObjectAddPoint, Type = MKI_DB_POINT_ANY

MKI_ObjectAddTextShort, StaticLength = false

MKI_ObjectAddTextShort, StaticLength = false

MKI_ObjectAddTextShort, StaticLength = false

MKI_ObjectAddDimSmall

MKI_ObjectFastInsert

 

Use the MKI_PARSE_OBJ_DTEXT class to parse the data blocks of such an object in memory.

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH