evCreate API 5.7 Help

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: EvItem

A 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: EvMatrix3D

An EvMatrix3D object, 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 void if 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