API_​LevelDimensionType

Represents a level dimension.

    typedef struct {
        API_Elem_Head       head;
        short               pen;
        short               dimForm;
        bool                filler_0;
        bool                needPlus;
        bool                staticLevel;
        bool                filler_1;
        double              markerSize;
        double              angle;
        Int32               filler_2[8];
        API_NoteType        note1;
        API_NoteType        note2;
        API_Coord           loc;
        double              level;
        API_ElemTypeID      parentType;
        Int32               filler_3;
        API_Guid            parentGuid;
        API_DimOriginID     origin;
        Int32               filler_4[7];
    } API_LevelDimensionType;

 

Members

head
General element header.
pen
Pen attribute index of the dimension.
dimForm
Format [0..9]:
Level dimension
needPlus
Plus sign needed for positive numbers?
staticLevel
Static level dimension?
markerSize
Marker size in mm.
angle
Angle of lev dimension marker [radian].
note1
Parameters of the dimension text (see API_NoteType).
note2
Parameters of the secondary dimension text (see API_NoteType); for dimForm = 8, 9.
loc
Location of the marker.
level
Level of the parent/floor, or static.
parentType
Refers to this element (see API_ElemTypeID); refers to floor if API_ZombieElemID.
parentGuid
Unique ID of referred element if parentType is not API_ZombieElemID.
parentGuid 17
Guid of referred element.
origin
Origin of dimensioning (see API_DimOriginID).

 

Remarks

The needFrame member has been removed in v13; framing is now handled by the dimension note.

The parentIndex member has been removed in v18; use the parentGuid field instead.

 

Requirements

Version: API 2.1 or later
Header: APIdefs_Elements.h

 

See Also

API_Elem_Head, API_ElemTypeID, API_NoteType, API_Coord, API_Element,
Element Manager, API Types