TranslatePart Function
Translates given parts of a 3D model edited in an active 3D editing session by a given translation offset vector.
Parameters
parts: EvItem[]An array of Part item objects, one or more given parts of a 3D model currently edited in an active 3D editing session that should be translated by the given translation offset vector.
by: EvVector3DAn
EvVector3Dobject, the 3D coordinates of a given translation offset vector that defines the offset by which the given parts should be translated.locally: booleanA Boolean, a flag to specify how to translate multiple given parts:
true: each given part separately in the local coordinate system of that part.false: all given parts together as a group in the coordinate system of this group.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the given parts of the 3D model currently edited in the active 3D editing session have been successfully translated by the given translation offset vector.
Discussion
The function will throw an error if the 3D editing mode has not been activated.