Object 17 "Ellipse Sector" (Entities) Changed in Version 2021.0

www.CAD6.com

Data Block Sequence

Data Block 003( cx, cy )

- Center-point

Data Block 006( vx1, vy1 )

- Vector end-point 1

Data Block 006( vx2, vy2 )

- Vector end-point 2

Data Block 005( ax1, ay1 )

- Start-angle definition

Data Block 005( ax2, ay2 )

- End-angle definition

Data Block 101( Orientation )

- Arc direction

 

The point (cx,cy) determines the ellipse's center-point, the points (vx1,vy1) and (vx2,vy2) are end-points of vectors that define the ellipse. The points (ax1,ay1) and (ax2,ay2), in relation to the ellipse's center-point (cx,cy), determine the start- and end-angle of the sector. If Orientation >= 0, the sector is drawn counter-clockwise from the start-angle to the end-angle. If Orientation < 0, the sector is drawn clockwise.

 

 

Attributes New in Version 2021.0

An ellipse sector may contain attribute data blocks (see MKI_BLOCK_ATTRIBUTE) of types "local", "outline", and "point". Their position in the list of data blocks must be as follows:

-Outline attributes must be placed anywhere behind the first point. Any outline attribute after the first point data block belongs to the outline.
-Point attributes must be placed behind the respective point. Any point attribute after point data block P and before the next point data block (or end of object) belongs to that point P.
-Local attributes should be placed behind all other datablocks and attributes.

The total number of attributes of each type (local, outline, point) per respective element (entity, outline, and point) is limited to MKI_ATTRIBS_PER_OBJECT.

 

Interface Command Sequence

MKI_ObjectOpen, Type = MKI_OBJ_ESECTOR

MKI_ObjectAddPoint, Type = MKI_DB_POINT_CENTER

MKI_ObjectAddPoint, Type = MKI_DB_POINT_VECTOR

MKI_ObjectAddPoint, Type = MKI_DB_POINT_VECTOR

MKI_ObjectAddPoint, Type = MKI_DB_POINT_ANGLE

MKI_ObjectAddPoint, Type = MKI_DB_POINT_ANGLE

MKI_ObjectAddOrient

MKI_ObjectFastInsert

 

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

 

CAD6interface 2025.0 - Copyright 2025 Malz++Kassner® GmbH