Linear Dimension

Below we will consider the object displaying a distance between two points.

Linear dimension

Object

Common type of a linear dimension object (TypeScript):

export type C3DViewLineDimension = {
    type: C3DViewObjectTypes.LineDimension // "LineDimension"
    uuid?: string
    points: {
        p1: C3DViewPoint
        p2: C3DViewPoint
        tp?: C3DViewPoint
    }
    placement?: C3DViewPlacement
    options: C3DViewDimensionOptions
    userData: C3DUserData
}

The properties type, uuid, and userData are described here. The property options is described here. Additionally for this PMI object:

  • type can be C3DViewObjectTypes.LineDimension or a string "LineDimension";

  • userData object is created in the process when returned in the onCreate event callback.

  1. points is a group of points to build an object:

    • p1 is the first object point on geometry;

    • p2 is the second object point on geometry;

    • tp is a dimension text position.

  2. placement is a plane to orientate geometry (optional).

New in version 1.6.4: Made the placement property optional.