Object 30 "Dimension Coordinate" (Entities) Changed in Version 2021.0

www.CAD6.com

Data Block Sequence

Data Block 000( x1, y1 )

- Coordinate to be dimensioned / Reference point

Data Block 001( x2, y2 )

- Arrow split point

Data Block 000( nx1, ny1 )

- First dimension number definition

Data Block 000( nx2, ny2 )

- Second dimension number definition

Data Block 110( PreText )

- Text in front of coordinates (ElemCount = MKI_LENGTH_TEXT_SHORT)

Data Block 110( Coord1Text )

- X-coordinate (ElemCount = -MKI_LENGTH_TEXT_SHORT)

Data Block 110( MiddleText )

- Text between coordinates (ElemCount = MKI_LENGTH_TEXT_SHORT)

Data Block 110( Coord2Text )

- Y-coordinate (ElemCount = -MKI_LENGTH_TEXT_SHORT)

Data Block 110( PostText )

- Text behind coordinates (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( ... )

- Coordinate dimension parameters

Data Block 237( ... )

- Reference text parameters

 

The point (x1,y1) is the point whose coordinates shall be measured. The points (nx1,ny1) and (nx2,ny2) determine the position and, if applicable, the orientation of the dimension number.

 

The following texts make up the dimension texts to be displayed, where PreText, Coord1Text, MiddleText, Coord2Text and PostText will be connected to one text ("Main dimension text") without separating characters.

 

Attributes New in Version 2021.0

A coordinate dimension 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

Example

|BlockType|

0,230,0,0,

|TextFont|

0,0,400,"DINLQ",

|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,1,0,

|System|

0;

 

This coordinate dimension will be lettered with the font "DINLQ", using pen 1. The main dimension has a text size of 5 mm, the tolerances have a text size of 3.5 mm. The dimension number will not be rotated, but automatically be updated.

The dimension will be calculated according to the settings in the coordinate system "00: *Standard".

 

 

The image above shows a coordinate dimension created using the settings described above. The point (x1,y1) defines the coordinate, the point (nx1,ny1) places the dimension number. As the number is not rotated, the point (nx2,ny2) is not used.

 

PreText is set to "(" by default, MiddleText is set to "/" and PostText is set to ")".

 

Interface Command Sequence

MKI_ObjectOpen, Type = MKI_OBJ_DCOORDINATE

MKI_ObjectAddPoint, Type = MKI_DB_POINT_ANY

MKI_ObjectAddPoint, Type = MKI_DB_POINT_ANY

MKI_ObjectAddPoint, Type = MKI_DB_POINT_ANY

MKI_ObjectAddPoint, Type = MKI_DB_POINT_ANY

MKI_ObjectAddTextShort, StaticLength = false

MKI_ObjectAddTextShort, StaticLength = true

MKI_ObjectAddTextShort, StaticLength = false

MKI_ObjectAddTextShort, StaticLength = true

MKI_ObjectAddTextShort, StaticLength = false

MKI_ObjectAddTextShort, StaticLength = false

MKI_ObjectAddTextShort, StaticLength = false

MKI_ObjectAddDimSmall

MKI_ObjectAddTextReference

MKI_ObjectFastInsert

 

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

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH