IafBimGraphicsLoader
Use the IafBimGfxLoader API to manage 2D and 3D model graphics on the platform.
getGeometryViews#
Gets a model's geometry views.
| Parameter | Required | Type | Description |
|---|---|---|---|
| model_id | Yes | String | The imported BIM model's id |
| ctx | No | Ctx | ctx - Context, such as namespaces and authentication token information. |
Returns
Promise<Array<GeometryView>> - Returns an array of GeometryView objects
Examples
let res = await IafBimGraphicsLoader.loadSVGImages("987546a2-72ef-42c0-b569-9862b14kp1fg");loadGraphicsStream#
Loads an imported BIM model's 3D BIM graphics.
| Parameter | Required | Type | Description |
|---|---|---|---|
| model_id | Yes | String | The imported BIM model's id |
| target | Yes | Pass the viewer or other consumer of the BIM graphics data as a WebGLViewer object. | |
| ctx | No | Ctx | ctx - Context, such as namespaces and authentication token information. |
Returns
Promise<boolean> - Returns a promise with a Boolean value
loadSVGImages#
Downloads an SVG image for a view resource when you pass its file id.
| Parameter | Required | Type | Description |
|---|---|---|---|
| fileId | Yes | String | Pass the file id that represents the view. |
| ctx | No | Ctx | Context, such as namespaces and authentication token information. |
Returns
Promise<String> - An SVG image as a string
Examples
let res = await IafBimGraphicsLoader.loadSVGImages("462322a2-72ef-42c0-b569-7434b15ec1cf");