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.
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 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.
Deprecated since 25.3
. Use downloadResourceRange() instead.
Optional
onProgress: (progress: number, chunk: Uint8Array, requestId: number) => voidOptional
signal: AbortSignalDownloads a resource file. Resource files are files that contain model scene descriptions, or geometry data.
Resource file name.
Optional
onProgress: (progress: number, chunk: Uint8Array) => voidDownload progress callback.
Optional
signal: 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.
Request ID for download progress callback.
A range of resource file contents to download.
Optional
onProgress: (progress: number, chunk: Uint8Array, requestId: number) => voidDownload progress callback.
Optional
signal: AbortSignalAn AbortController signal. Allows to communicate with a fetch request and abort it if desired.
Returns a model transformation.
Model handle.
Returns a list of references of the owner file/assembly.
References are images, fonts, or any other files to correct rendering of the file.
Optional
signal: AbortSignalAn AbortController signal, which can be used to abort waiting as desired.
Returns viewpoint snapshot as base64-encoded Data URL.
Viewpoint GUID.
Deprecated since 25.3
. Use downloadResource() instead.
Optional
onProgress: (progress: number, chunk: Uint8Array) => voidOptional
signal: AbortSignalSets or removes a model transformation.
Model handle.
Optional
transform: IModelTransformMatrixTransformation matrix. Specify undefined
to remove transformation.
Provides properties and methods for working with view of the file or assembly. For example, for
dwg
it is aModel
space or layout, and forrvt
files it is a3D
view.