Endpoint-specific HTTP headers for the GET, POST, PUT and DELETE requests. You can add
custom headers at any time.
Endpoint API path relative to the REST API server URL.
The Assembly instance that owns the model.
Raw model data received from the server.
Scene description resource file name. Use downloadResource() to download scene description file.
true if this is default model.
The File instance that owns the model.
The ID of the file that owns the model.
The list of geometry data resource files. Use downloadResource() to download geometry data files.
Unique model ID.
Model name.
Model owner type, matches the file extension this is model of the file, or assembly for
assemblies.
Deletes the specified viewpoint from the owner file/assembly.
Viewpoint GUID.
Returns the raw data of a deleted viewpoint.
Deprecated since 25.3. Use downloadResourceRange() instead.
OptionalonProgress: (progress: number, chunk: Uint8Array, requestId: number) => voidOptionalsignal: AbortSignalDownloads a resource file. Resource files are files that contain model scene descriptions, or geometry data.
Resource file name.
OptionalonProgress: (progress: number, chunk: Uint8Array) => voidDownload progress callback.
Optionalsignal: AbortSignalAn AbortController signal. Allows to communicate with a fetch request and abort it if desired.
Downloads a part of resource file. Resource files are files that contain model scene descriptions, or geometry data.
Resource file name.
Specify a non-empty requestId to append the ?requestId= search parameter to
the server request. If specified, server-side caching may not work.
A ranges of resource file contents to download. See HTTP range requests for more details.
OptionalonProgress: (progress: number, chunk: Uint8Array, requestId: number) => voidDownload progress callback.
Optionalsignal: AbortSignalAn AbortController signal. Allows to communicate with a fetch request and abort it if desired.
Returns model list with one item self.
Returns a list of references of the owner file/assembly.
References are images, fonts, or any other files to correct rendering of the file.
Optionalsignal: AbortSignalAn AbortController signal, which can be used to abort waiting as desired.
Returns viewpoint snapshot as base64-encoded Data URL.
Viewpoint GUID.
Returns viewpoint snapshot data.
Viewpoint GUID.
Bitmap GUID.
Returns a list of viewpoints of the owner file/assembly.
Deprecated since 25.3. Use downloadResource() instead.
OptionalonProgress: (progress: number, chunk: Uint8Array) => voidOptionalsignal: AbortSignalSaves a new model owner file/assembly viewpoint to the server. To create a new viewpoint use
Viewer.createViewpoint().
Viewpoint object.
Sets or removes a model transformation.
Model handle.
Optionaltransform: IModelTransformMatrixTransformation matrix. Specify undefined to remove transformation.
Provides properties and methods for working with view of the file or assembly. For example, for
dwgit is aModelspace or layout, and forrvtfiles it is a3Dview.