Bitbybit Docs
    Preparing search index...

    Class CreateInstanceNodeDto (Inputs.OCCT)

    An instance node definition for assembly.manager.createInstanceNode: one placement of a part, with a translation, rotation and scale or a matrix.

    Index

    Constructors

    Properties

    id: string

    The id of this placement; it must be unique among the nodes.

    undefined
    
    partId: string

    The id of the part, or imported part, being placed.

    undefined
    
    name: string

    The name of this placement, written into STEP files and shown by viewers.

    undefined
    
    parentId?: string

    The id of the assembly this placement sits in; leave it out for the root.

    undefined
    

    true

    translation?: Point3

    Where the part is moved to, as [x, y, z] in model units.

    [0, 0, 0]
    
    rotation?: Vector3

    Euler angles [rx, ry, rz] in degrees about the X, Y and Z axes; the Z turn is applied first, then Y, then X.

    [0, 0, 0]
    
    scale?: number

    A uniform scale of the placed part; 1 keeps its size.

    1.0
    
    colorRgba?: ColorRGBA

    A color for this placement only, as { r, g, b, a } from 0 to 1, overriding the part's color.

    undefined
    

    true

    The placement as a column-major 4x4 matrix, or a list of them applied first to last; when given, translation, rotation and scale are ignored.

    undefined
    

    true