evCreate API 5.7 Help

FindParts Function

Returns part items found in a 3D model currently edited in an active 3D editing session against given part item metadata.

FindParts(metaValue: [[[EvMetaValue|canvas-envision-document-items.html#evmetavalue-interface]]]): Promise<[[[EvItem|canvas-envision-document-items.html#part-items]]][]>

Parameters

metaValue: EvMetaValue

An EvMetaValue object, a piece of part metadata kept in the metaValue property of an EvPartItemData object against which part items of a 3D model currently edited in the active 3D editing session should be returned.

Return value

Promise<EvItem[]>

A Promise that, if fulfilled, resolves to an array of one or more Part item objects found in the 3D model currently edited in the active 3D editing session against the given part item metadata.

Discussion

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

23 April 2025