Bitbybit Docs
    Preparing search index...

    Class SetDocLabelColorsDto<T>Beta (Inputs.OCCT)

    A document, labels and one color for assembly.manager.setDocLabelColors, which gives every label the color in one change.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Beta

      Type Parameters

      • T

      Parameters

      • Optionaldocument: T
      • Optionallabels: string[]
      • Optionalr: number
      • Optionalg: number
      • Optionalb: number
      • Optionala: number

      Returns SetDocLabelColorsDto<T>

    Properties

    document: T

    The document from buildAssemblyDocument or loadStepToDoc.

    undefined
    
    r?: number

    The red channel, from 0 to 1.

    0.5
    

    0

    1

    0.01

    g?: number

    The green channel, from 0 to 1.

    0.5
    

    0

    1

    0.01

    b?: number

    The blue channel, from 0 to 1.

    0.5
    

    0

    1

    0.01

    a?: number

    The opacity, from 0 for transparent to 1 for opaque.

    1.0
    

    0

    1

    0.01

    labels: string[]

    The labels of the parts, instances or assemblies to color, such as 0:1:1:1; each takes the one color.

    undefined