Describes one AutoCAD SHAPE entity for rendering.

A shape references a single glyph from an SHX shape font, identified by name and/or shapeNumber.

interface AcGiShapeData {
    directionVector?: AcGeVector3dLike;
    name?: string;
    position: AcGeVector3dLike;
    rotation?: number;
    shapeNumber?: number;
    size: number;
    widthFactor?: number;
}

Properties

directionVector?: AcGeVector3dLike

Extrusion/normal vector (DXF groups 210–230).

name?: string

Shape name within the SHX font (DXF group 2).

Insertion point in WCS coordinates (DXF group 10).

rotation?: number

Rotation relative to the shape OCS X axis, in radians (DXF group 50).

shapeNumber?: number

Numeric shape code within the SHX font.

size: number

Shape height (DXF group 40).

widthFactor?: number

Relative X-scale factor (DXF group 41).