Bitbybit Docs
    Preparing search index...

    Class SetDocLabelColorDto<T> (Inputs.OCCT)

    A document, a label and a color for assembly.manager.setDocLabelColor.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    Constructors

    • Type Parameters

      • T

      Parameters

      • Optionaldocument: T
      • Optionallabel: string
      • Optionalr: number
      • Optionalg: number
      • Optionalb: number
      • Optionala: number

      Returns SetDocLabelColorDto<T>

    Properties

    document: T

    The document from buildAssemblyDocument or loadStepToDoc.

    undefined
    
    label: string

    The label of the part, instance or assembly to color, such as 0:1:1:1.

    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