Skip to main content
Version: v4.5

IafBimGraphicsLoader

Use the IafBimGfxLoader API to manage 2D and 3D model graphics on the platform.

getGeometryViews#

Gets a model's geometry views.

ParameterRequiredTypeDescription
model_idYesStringThe imported BIM model's id
ctxNoCtxctx - 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.

ParameterRequiredTypeDescription
model_idYesStringThe imported BIM model's id
targetYesPass the viewer or other consumer of the BIM graphics data as a WebGLViewer object.
ctxNoCtxctx - 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.

ParameterRequiredTypeDescription
fileIdYesStringPass the file id that represents the view.
ctxNoCtxContext, 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");