Bitbybit Docs
    Preparing search index...

    Interface DocumentAnnotationBeta (Models.OCCT)

    One annotation as it is drawn: its label and what it is, the plane it stands in, and its presentation as lines and filled letters, placed where the parts it belongs to stand. Lengths are in the document's units; a number the file holds as infinite reads NaN.

    interface DocumentAnnotation {
        label: string;
        kind: DocumentAnnotationKind;
        type: string;
        name: string;
        value: number;
        attached: number;
        product?: number;
        instance?: number;
        plane?: DocumentAnnotationPlane;
        textPoint?: any;
        lines: Point3[][];
        fills: Point3[][];
        facing?: any;
    }
    Index

    Properties

    label: string

    The annotation's label in the document, the same as assembly.query.getDocumentPmi gives it.

    Whether it is a dimension, a tolerance or a datum.

    type: string

    Its type, such as Size_Diameter or Flatness, or a datum's letter; empty when the file names none.

    name: string

    The name of its presentation, empty when it has none.

    value: number

    The nominal value of a dimension or the value of a tolerance; 0 for a datum.

    attached: number

    How many shapes it refers to; 0 for a note that stands by itself.

    product?: number

    The number of the product it belongs to, as the document's product tree numbers it; left out when it belongs to the model as a whole.

    instance?: number

    Which placement of its product this copy stands at, counted from 0 in the order of the product tree; left out without a product.

    The plane it stands in, when the file gives one.

    textPoint?: any

    Where its text is attached, when the file gives that point.

    lines: Point3[][]

    Its drawn lines, each a polyline of points; empty without a presentation.

    fills: Point3[][]

    Its filled marks, letters above all, each a closed loop of points to fill under the even-odd rule, the first point not repeated.

    facing?: any

    The unit direction its filled marks face, the side they read from; given only with fills.