evCreate API 5.7 Help

SaveNew Function

Quits a currently active 3D editing session and saves all the changes done to a 3D model item edited in this session to a newly created 3D model item.

SaveNew(): Promise<void>

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if all:

  • The currently active 3D editing session has been successfully stopped.

  • A new 3D model item pointing to the same 3D model has been created.

  • All the changes done to the 3D model item edited in this session are saved to that new 3D model item.

Discussion

The function will throw an error if the 3D editing mode has not been activated.

For memory efficiency, the data of the 3D model is shared by the original and newly created (copied) 3D model items. The copied 3D model item will only contain a different view of the 3D model.

28 April 2025