SetPartMetaData Function
Creates or updates given metadata properties of given parts from a 3D model edited in an active 3D editing session.
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 whose given metadata properties should be created or updated.
metaData: Ev3DMetadata[]An array of
Ev3DMetadataobjects, one or more given metadata properties that should be created or updated in the given parts of the 3D model edited in the active 3D editing session. Each given part will have all the given metadata properties created or updated.
Return value
Promise<void>A Promise that, if fulfilled, resolves to
voidif the given metadata properties have been successfully created or updated in each given part of the 3D model edited in the active 3D editing session.
Discussion
The function will throw an error if the 3D editing mode has not been activated.
If a given part already has a metadata property with the name specified in a given Ev3DMetadata object, the value of this metadata property will be updated. Otherwise, a new metadata property will be added to the given part.