readElementGraphics Function

Convert the byte array returned by TileAdmin.requestElementGraphics into a RenderGraphic.

readElementGraphics(bytes: Uint8Array, iModel: IModelConnection, modelId: string, is3d: boolean, options?: BatchOptions): Promise<RenderGraphic | undefined>

Parameter Type Description
bytes Uint8Array The binary graphics data obtained from requestElementGraphics.
iModel IModelConnection The iModel with which the graphics are associated.
modelId string The Id of the GeometricModelState with which the graphics are associated. Can be an invalid Id.
is3d boolean True if the graphics are 3d.
options BatchOptions Options customizing how Features within the graphic can be resymbolized.

Returns - Promise<RenderGraphic | undefined>

Defined in

Last Updated: 29 November, 2022