bitbybit.dev v1.0.0-rc.1
    Preparing search index...

    Class CreateInstanceNodeDto

    DTO for creating an instance node (reference to a part with transform). Instance nodes place a part at a specific location with optional transform.

    Index

    Constructors

    • Parameters

      • Optionalid: string
      • OptionalpartId: string
      • Optionalname: string
      • OptionalparentId: string
      • Optionaltranslation: Point3
      • Optionalrotation: Vector3
      • Optionalscale: number
      • OptionalcolorRgba: ColorRGBA

      Returns CreateInstanceNodeDto

    Properties

    id: string

    Unique identifier for this instance node

    undefined
    
    partId: string

    ID of the part to instance (must match a part's id)

    undefined
    
    name: string

    Display name for this instance

    undefined
    
    parentId?: string

    Parent assembly node ID. Leave undefined for root level.

    undefined
    
    translation?: Point3

    Translation as [x, y, z]

    [0, 0, 0]
    
    rotation?: Vector3

    Rotation as [rx, ry, rz] in degrees (Euler ZYX order)

    [0, 0, 0]
    
    scale?: number

    Uniform scale factor

    1.0
    
    colorRgba?: ColorRGBA

    Optional color override for this instance

    undefined