evCreate API 5.7 Help

SetPartGhosted Function

Ghosts or unshosts given parts from a 3D model edited in an active 3D editing session.

SetPartGhosted(parts: [[[EvItem|canvas-envision-document-items.html#part-items]]][], ghosted: boolean): Promise<void>

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 ghosted or unghosted.

ghosted: boolean

A Boolean, a switch to ghost (true) or unghost (false) given parts from a 3D model edited in an active 3D editing session.

Return value

Promise<void>

A Promise that, if fulfilled, resolves to void if the given parts from the 3D model edited in the active 3D editing session have been successfully ghosted or unghosted.

Discussion

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

25 April 2025