Bitbybit Docs
    Preparing search index...

    Class CreateImportedPartDto (Inputs.OCCT)

    An imported part definition for assembly.manager.createImportedPart: a label tree copied from another document, placed by instances like any part.

    Index

    Constructors

    • Parameters

      • Optionalid: string
      • OptionalsourceDocumentIndex: number
      • OptionalsourceLabel: string
      • Optionalname: string
      • OptionalcolorRgba: ColorRGBA

      Returns CreateImportedPartDto

    Properties

    id: string

    The id instance nodes refer to the imported part by; it must be unique among the parts.

    undefined
    
    sourceDocumentIndex: number

    Which of the sourceDocuments given to buildAssemblyDocument to copy from, counting from 0.

    0
    
    sourceLabel?: string

    The label of the sub-tree to copy, such as 0:1:1:1; leave it out to copy every top-level shape of the source document.

    undefined
    

    true

    name?: string

    A name for the copied root; leave it out to keep the source's name.

    undefined
    

    true

    colorRgba?: ColorRGBA

    A color for the copied root as { r, g, b, a } from 0 to 1; leave it out to keep the source's colors.

    undefined
    

    true