Bitbybit Docs
    Preparing search index...

    Class CreateImportedPartDto (Inputs.OCCT)

    DTO for creating an imported part definition. Imported parts copy a label tree from a source document (typically STEP-loaded) into the new assembly, preserving sub-assembly hierarchy. They become referenceable as a single part (by id) from any instance node.

    Index

    Constructors

    • Parameters

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

      Returns CreateImportedPartDto

    Properties

    id: string

    Unique identifier for referencing this imported part from instance nodes (via partId).

    undefined
    
    sourceDocumentIndex: number

    Index into the sourceDocuments array passed to buildAssemblyDocument.

    0
    
    sourceLabel?: string

    Optional OCAF entry string of the label to copy from the source document (e.g. "0:1:1:1"). If omitted, all free shapes of the source document are imported (wrapped in a new assembly compound when there are multiple).

    undefined
    
    name?: string

    Optional display name override applied to the imported root label.

    undefined
    
    colorRgba?: ColorRGBA

    Optional color override applied to the imported root label.

    undefined