evCreate API 5.7 Help

GetPartInfo Function

Returns an object with the 3D attributes of a given part item from a 3D model currently edited in an active 3D editing session.

GetPartInfo( part: [[[EvItem|canvas-envision-document-items.html#part-items]]], options?: [[[EvPartQueryOptions|evpartqueryoptions-interface.html]]] ): Promise<[[[Ev3DObjectData|ev3dobjectdata-interface.html]]]>

Parameters

part: EvItem

A Part item object, a part item from a 3D model currently edited in an active 3D editing session whose 3D attributes should be obtained.

If a given item is not a part, the function throws an error.

options?: EvPartQueryOptions

An EvPartQueryOptions object, a setting that controls which child parts of the given part item should be returned.

The default value is not to return the child parts of the given part.

Return value

Promise<Ev3DObjectData>

A Promise that, if fulfilled, resolves to an Ev3DObjectData object that includes the 3D attributes of the given part item from the 3D model currently edited in the active 3D editing session.

Discussion

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

23 April 2025