evCreate API 5.7 Help

GetModelInfo Function

Returns an object with the 3D attributes of a given 3D model object item or model item from an Envision document currently opened in the Canvas Envision Creator app.

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

Parameters

model?: EvItem

An Object or Model item object, a given 3D model item from the Envision document currently opened in the Canvas Envision Creator app whose 3D attributes should be obtained.

If this parameter is not given during the active 3D edit mode, the active 3D model is passed implicitly. If it is not given during page edit mode, the function throws an error.

If a given object item is not a 3D model, the function throws an error.

options?: EvPartQueryOptions

An EvPartQueryOptions object, a setting that controls which parts of the given 3D model item should be returned.

The default value is not to return the parts of the given 3D model.

Return value

Promise<Ev3DObjectData>

A Promise that, if fulfilled, resolves to an Ev3DObjectData object that includes the 3D attributes of the given 3D model item.

09 April 2025