SetPartPosition Function
Translates or rotates a given part of a 3D model edited in an active 3D editing session by a given transformation matrix.
SetPartPosition(part: [[[EvItem|canvas-envision-document-items.html#part-items]]], transformation: [[[EvMatrix3D|evmatrix3d-type-alias.html]]]): Promise<void>
Parameters
parts: EvItemA Part item object, a given part of the 3D model currently edited in an active 3D editing session that should be translated or rotated by the given transformation matrix.
transformation: EvMatrix3DAn
EvMatrix3Dobject, a given transformation matrix that should be applied to translate or rotate the given part of the 3D model edited in the active 3D editing session.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the given part of the 3D model edited in the active 3D editing session has been successfully translated or rotated by the given transformation matrix.
Discussion
The function will throw an error if the 3D editing mode has not been activated.
25 April 2025