Object 40 "Comment" (Entities) Changed in Version 2021.0

www.CAD6.com

Data Block Sequence

Data Block 000( rx, ry )

- Reference position

Data Block 110( Text )

- Comment text (ElemCount = MKI_LENGTH_TEXT_LONG)

Data Block 240( ... )

- Comment data

 

Optional:

Data Block 001( x1, y1 )

- Start-point of a curve

 

Line

Data Block 002( x?, y? )

- End-point of a line

 

Circular arc

Data Block 007( x?, y? )

- Pivot point 1

Data Block 008( x?, y? )

- Pivot point 2

Data Block 002( x?, y? )

- End-point of a Bézier curve

 

Bézier curve

Data Block 009( x?, y? )

- End-point of the circular arc

Data Block 102( Orientation, Curvature )

- Orientation and of curvature of the circular arc

 

This object type is used to apply a comment text to any object, area or location inside a drawing. This is used for information interchange of several engineers working on the same drawing.

 

The point (rx,ry) is the reference position, i.e. the target point of the comment's symbol. The value Text contains the text to be displayed. Its length may be up to MKI_LENGTH_TEXT_LONG characters including the terminating zero character (0x00).

 

In order to achieve a tabulator, use the character ¬ (Unicode 172). For a line feed, use the character ¶ (Unicode 182). All other characters will be displayed using the given font. Characters below Unicode 32 will be ignored.

 

 

The sequence of data blocks stored for the optional surface is identical to those stored in an object of type "Surface", see Object 13 "Surface".

 

Interface Command Sequence

MKI_ObjectOpen, Type = MKI_OBJ_COMMENT

MKI_ObjectAddPoint, Type = MKI_DB_POINT_ANY

MKI_ObjectAddTextLong, StaticLength = false

MKI_ObjectAddCommentData

 

Optional:

MKI_ObjectAddPoint, Type = MKI_DB_POINT_START

         ...

MKI_ObjectAddPoint, Type = MKI_DB_POINT_END

         ...

MKI_ObjectAddPoint, Type = MKI_DB_POINT_PIVOT1

MKI_ObjectAddPoint, Type = MKI_DB_POINT_PIVOT2

MKI_ObjectAddPoint, Type = MKI_DB_POINT_END

         ...

MKI_ObjectAddPoint, Type = MKI_DB_POINT_ARC

MKI_ObjectAddCurve

         ...

 

MKI_ObjectFastInsert

 

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

 

CAD6interface 2024.2 - Copyright 2024 Malz++Kassner® GmbH