SetPartVisible Function
Toggles the visibility of given parts of a 3D model edited in an active 3D editing session in the viewport.
SetPartVisible(parts: [[[EvItem|canvas-envision-document-items.html#part-items]]][], visible: 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 hidden or shown in the viewport.
visible: booleanA Boolean, a switch to hide (
false) or show (true) given parts of the 3D model edited in the active 3D editing session in the viewport.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the given parts of the 3D model edited in the active 3D editing session have been successfully shown or hidden in the viewport.
Discussion
The function will throw an error if the 3D editing mode has not been activated.
25 April 2025