Table of contents
Saved Views
Download API definition:
patch https://dev-api.bentley.com/savedviews/{savedViewId}

Updates a saved view.

Note: any string parameter being passed in the payload will be rejected if it contains any of the following characters: <, >, &, ", ', .

Authentication

Requires Authorization header with valid Bearer token for scope itwin-platform.

For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.

Request parameters

Name
Required?
Description
savedViewId
Yes

Request headers

Name
Required?
Description
Authorization
Yes

OAuth access token with itwin-platform scope

Accept
Yes

Setting to application/vnd.bentley.itwin-platform.v1+json is recommended.

Request body

SavedViewUpdate

Name
Type
Required?
Description
shared
Boolean, null
No

Flag for whether or not Saved View is shared

tagIds
String[], null
No

Tags of Saved View

groupId
String, null
No

Group ID

displayName
String, null
No

Saved View Name

savedViewData
No

Example

json
{
    "savedViewData": {
        "itwin3dView": {
            "origin": [0, 0, 0],
            "extents": [100, 100, 100],
            "angles": {
                "yaw": 90,
                "pitch": 90,
                "roll": 90
            },
            "camera": {
                "lens": 90,
                "focusDist": 1,
                "eye": [0, 0, 0]
            },
            "categories": {
                "enabled": ["0x12", "0x13"],
                "disabled": ["0x14", "0x15"]
            },
            "models": {
                "enabled": ["0x12", "0x13"],
                "disabled": ["0x14", "0x15"]
            }
        }
    },
    "groupId": "AKX-Arab1o1NqdQwr7zIr3KNv7DGPQORQpkxmyDyE1ERZS7bsqUkWEmr9ZGmC5TopQ",
    "displayName": "Saved View Test Name",
    "shared": false,
    "tagIds": ["ABRBqKCBtXZCl_ax5ZFB9uaNv7DGPQORQpkxmyDyE1ERZS7bsqUkWEmr9ZGmC5TopQ"]
}

Response 200 OK

Updated saved view.

json
{
    "savedView": {
        "id": "ACZbDmWhULVChRcDRkoPdLaNv7DGPQORQpkxmyDyE1ERZS7bsqUkWEmr9ZGmC5TopQ",
        "displayName": "Test Name",
        "shared": false,
        "creationTime": "2022-10-04T16:14:08.3350000+00:00",
        "lastModified": "2022-10-07T13:15:25.2240000+00:00",
        "tags": [{
            "displayName": "Tag Test Name",
            "id": "ABRBqKCBtXZCl_ax5ZFB9uaNv7DGPQORQpkxmyDyE1ERZS7bsqUkWEmr9ZGmC5TopQ"
        }],
        "_links": {
            "iTwin": {
                "href": "https://api.bentley.com/path1/path2/id"
            },
            "imodel": {
                "href": "https://api.bentley.com/path1/path2/id"
            },
            "creator": {
                "href": "https://api.bentley.com/path1/path2/id"
            },
            "group": {
                "href": "https://api.bentley.com/path1/path2/id"
            },
            "image": {
                "href": "https://api.bentley.com/path1/path2/id"
            },
            "thumbnail": {
                "href": "https://api.bentley.com/path1/path2/id"
            }
        },
        "savedViewData": {
            "itwin3dView": {
                "origin": [0, 0, 0],
                "extents": [100, 100, 100],
                "angles": {
                    "yaw": 90,
                    "pitch": 90,
                    "roll": 90
                },
                "camera": {
                    "lens": 90,
                    "focusDist": 1,
                    "eye": [0, 0, 0]
                },
                "categories": {
                    "enabled": ["0x12", "0x13"],
                    "disabled": ["0x14", "0x15"]
                },
                "models": {
                    "enabled": ["0x12", "0x13"],
                    "disabled": ["0x14", "0x15"]
                }
            }
        }
    }
}

Response 401 Unauthorized

This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.

json
{
    "error": {
        "code": "HeaderNotFound",
        "message": "Header Authorization was not found in the request. Access denied."
    }
}

Response 403 Forbidden

The user has insufficient permissions for the requested operation.

json
{
    "error": {
        "code": "InsufficientPermissions",
        "message": "The user has insufficient permissions for the requested operation."
    }
}

Response 404 Not Found

Requested savedview is not available.

json
{
    "error": {
        "code": "SavedViewNotFound",
        "message": "Requested savedview is not available."
    }
}

Response 422 Unprocessable Entity

Cannot update saved view.

json
{
    "error": {
        "code": "InvalidSavedviewsRequest",
        "message": "Cannot update saved view.",
        "details": [{
            "code": "InvalidRequestBody",
            "message": "displayName must be a string.",
            "target": "displayName"
        }]
    }
}

Response 429 Too many requests

This response indicates that the client sent more requests than allowed by this API for the current tier of the client.

json
{
    "error": {
        "code": "RateLimitExceeded",
        "message": "The client sent more requests than allowed by this API for the current tier of the client."
    }
}

Response headers

Name
Description
retry-after

Number of seconds to wait until client is allowed to make more requests.

Link

Name
Type
Description
href
String

Http reference

View

Name
Type
Description
itwin3dView
itwinSheetView
itwinDrawingView

Error

Contains error information.

Name
Type
Description
code
String

One of a server-defined set of error codes.

target
String, null

The target of the error.

message
String

A human-readable representation of the error.

ShapeProps

Name
Type
Description
mask
Boolean

true if this shape is a mask.

zLow
Number

Lower bound on Z.

zHigh
Number

Upper bound on Z.

points
Array[]

The points describing the polygon.

invisible
Boolean

true if this shape is invisible.

transform
Array[]

Transform applied to the polygon.

ViewCamera

Name
Type
Description
eye
Number[]

Location of the eye of the camera. (Array of numbers representing x, y and z)

lens
Number

Angle of the camera lens, in degrees

focusDist
Number

Focal distance of the lens, in meters

PlanesProps

Name
Type
Description
clips
Array[]
invisible
Boolean

true if the primitive is a hole.

SkyBoxProps

Name
Type
Description
display
Boolean

Whether or not the skybox should be displayed

twoColor
Boolean

For a SkyGradient, if true, a 2-color gradient skybox is used instead of a 4-color.

nadirColor
groundColor
skyExponent
Number

For a 4-color SkyGradient, controls speed of change from sky color to zenith color; otherwise unused.

zenithColor
groundExponent
Number

For a 4-color SkyGradient, controls speed of change from ground color to nadir color; otherwise unused.

ViewItwin3d

Name
Type
Description
origin
Number[]

The lower left back corner of the view frustum. (Array of numbers representing x, y and z)

extents
Number[]

The extent of the view frustum. (Array of numbers representing x, y and z)

SavedViewTag

Name
Type
Description
id
String

Linked Tag identifier

displayName
String

SkyCubeProps

Name
Type
Description
top
String

JSON representation of the top image used by a SkyCube. Can be an image URL or the Id of a texture element.

back
String

JSON representation of the back image used by a SkyCube. Can be an image URL or the Id of a texture element.

left
String

JSON representation of the left image used by a SkyCube. Can be an image URL or the Id of a texture element.

front
String

JSON representation of the front image used by a SkyCube. Can be an image URL or the Id of a texture element.

right
String

JSON representation of the right image used by a SkyCube. Can be an image URL or the Id of a texture element.

bottom
String

JSON representation of the bottom image used by a SkyCube. Can be an image URL or the Id of a texture element.

TerrainProps heightOriginMode

Determines how/if the heightOrigin is applied to the terrain height.

Name
Type
Description
Geodetic
String
Geoid
String
Ground
String

TerrainProps

Name
Type
Description
exaggeration
Number

A value greater than one will cause terrain height to be exaggerated/scaled.false (or 1.0) indicate no exaggeration.

heightOrigin
Number

Origin value - height of the IModel origin at the project center as defined by heightOriginMode.

providerName
String

Identifies the provider currently only CesiumWorldTerrain is supported.

applyLighting
Boolean

Applying lighting can help to visualize subtle terrain variation.

TerrainProps heightOriginMode

Determines how/if the heightOrigin is applied to the terrain height.

CutStyleProps

Name
Type
Description

Error Response

Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.

Name
Type
Description
error

Error information.

PortraitProps

Name
Type
Description
intensity
Number

Intensity of the portrait light.

RgbColorProps

Name
Type
Description
red
Number

Red value between [0, 255]

blue
Number

Blue value between [0, 255]

green
Number

Green value between [0, 255]

ViewFlagProps renderMode

Render mode.

Name
Type
Description
Wireframe
String
HiddenLine
String
SolidFill
String
SmoothShade
String

ViewFlagProps

Name
Type
Description
noFill
Boolean

If true, don't show filled regions.

noStyle
Boolean

If true, don't line styles.

shadows
Boolean

If true, show shadows.

noWeight
Boolean

If true, don't line weights.

noPattern
Boolean

If true, don't show patterns.

noTexture
Boolean

If true, don't show textures.

clipVolume
Boolean

If true, use the view's clipping volume. Has no effect on other types of clips like ModelClipGroups.

monochrome
Boolean

If true, show view with monochrome settings.

noMaterial
Boolean

If true, don't show materials.

ViewFlagProps renderMode

Render mode.

hiddenEdges
Boolean

If true, show hidden edges.

noDimensions
Boolean

If true, don't show dimension class.

visibleEdges
Boolean

If true, show visible edges.

backgroundMap
Boolean

Display background map.

noTransparency
Boolean

If true, don't use transparency.

noConstructions
Boolean

If true, don't show construction class.

ambientOcclusion
Boolean

If true, show ambient occlusion.

hiddenLineMaterialColors
Boolean

If true, use hidden line material colors.

ClipStyleProps

Name
Type
Description
insideColor
outsideColor
produceCutGeometry
Boolean

If true, geometry will be produced at the clip planes in a 3d view. - Solids (closed volumes) will produce facets on the clip planes. - Other surfaces will produce line strings representing the edges of the surface at the clip planes.

colorizeIntersection
Boolean

If 'true', intersection of geometry and clip planes will be colorized.

ExtensionLinks

Name
Type
Description
href
String
extensionName
String

SavedViewLinks

Name
Type
Description
group
iTwin
image
imodel
creator
project
thumbnail

ViewItwinSheet

Name
Type
Description
angle
Number

Angle, in degrees.

delta
Number[]

Delta. (Array of numbers representing x and y)

scale
Number, null

Scale of the sheet

width
Number, null

Width of the sheet, in meters

height
Number, null

Height of the sheet, in meters

origin
Number[]

Origin. (Array of numbers representing x and y)

baseModelId
String

Base model Id

sheetTemplate
String, null

Sheet template Id

sheetAttachments
String[], null

List of Ids

ViewWithLegacy

Name
Type
Description
legacyView
Object, null

Legacy data, un-updatable, will soon be deprecated move to new service

itwin3dView
itwinSheetView
itwinDrawingView

MapImageryProps

Name
Type
Description
overlayLayers
Object[]

Overlay layer settings.

backgroundBase
Object

The settings for the base layer.

backgroundLayers
Object[]

Background layer settings.

SavedViewUpdate

Name
Type
Description
shared
Boolean, null

Flag for whether or not Saved View is shared

tagIds
String[], null

Tags of Saved View

groupId
String, null

Group ID

displayName
String, null

Saved View Name

savedViewData

SolarLightProps

Name
Type
Description
direction
Number[]

Direction of the light in world coordinates.

intensity
Number

Intensity of the light.

timePoint
Number

If defined, the time in UNIX milliseconds from which direction was calculated.

alwaysEnabled
Boolean

If true, the light will be applied even when shadows are turned off for the view. If false, a roughly overhead light of the same intensity oriented in view space will be used instead.

EnvironmentProps

Name
Type
Description

ExtensionPayload

Name
Type
Description
data
String
_links.iTwin
_links.imodel
_links.project
_links.savedView
schemaUrl
String
markdownUrl
String
extensionName
String

GroundPlaneProps

Name
Type
Description
display
Boolean

Whether the ground plane should be displayed.

elevation
Number

The Z height at which to draw the ground plane.

aboveColor
belowColor

SkyBoxImageProps type

Type of skybox image.

Name
Type
Description
None
String
Spherical
String
Cube
String

SkyBoxImageProps

Name
Type
Description
SkyBoxImageProps type

Type of skybox image.

texture
String

The image to map to the interior of the sphere.

textures

ViewItwinDrawing

Name
Type
Description
angle
Number

Angle, in degrees.

delta
Number[]

Delta. (Array of numbers representing x and y)

origin
Number[]

Origin. (Array of numbers representing x and y)

baseModelId
String

Base model Id

spatialView
String, null

The Id of the spatial view from which the SectionDrawing was generated.

modelExtents
Array[]

The extents of the DrawingModel, used for determining the upper limits of the view's extents.

displaySpatialView
Boolean, null

If true, the spatial view should be displayed in the context of the drawing view.

drawingToSpatialTransform
Array[], null

Transform from drawing coordinates to spatial coordinates. If undefined, use identity transform. 3 X 4 transformation matrix containing 3 arrays of matrix rows consisting of 4 numbers each: [qx qy qz ax] where the fourth columnn in each row holds the translation.

ViewYawPitchRoll

Name
Type
Description
yaw
Number, null

Yaw (rotation of x towards y) of the orientation, in degrees

roll
Number, null

Roll (rotation of y towards z) of the orientation, in degrees

pitch
Number, null

Pitch (rotation that raises x towards z) of the orientation, in degrees

AmbientLightProps

Name
Type
Description
intensity
Number

Intensity of the lights.

SavedViewResponse

Name
Type
Description

SavedViewWithData

Name
Type
Description
id
String

Unique identifier

tags
SavedViewTag[], null

Tags of Saved View

shared
Boolean

Flag for whether or not element is shared

displayName
String

User visible name

creationTime
Date-time

ISO-8601 compliant time (UTC) the saved view was created.

lastModified
Date-time

ISO-8601 compliant time (UTC) the saved view was last modified.

savedViewData

ViewFlagOverrides renderMode

The basic rendering mode applied to the view. This modulates the behavior of some of the other flags.

Name
Type
Description
Wireframe
String
HiddenLine
String
SolidFill
String
SmoothShade
String

ViewFlagOverrides

Name
Type
Description
fill
Boolean

In RenderMode.Wireframe only, whether to display the interiors of planar regions with FillFlags.ByView.

grid
Boolean

Whether to display a grid.

styles
Boolean

Whether LinePixels are allowed to apply patterns to lines and edges. If false, they all draw as solid lines.

shadows
Boolean

In RenderMode.SmoothShade, whether to display solar shadows. This has no effect unless lighting is also true.

weights
Boolean

Whether to allow lines and edges to draw with width greater than one pixel.

acsTriad
Boolean

Whether to display a graphical representation of the view's AuxCoordSystem.

lighting
Boolean

In RenderMode.SmoothShade, whether to apply lighting to surfaces.

patterns
Boolean

Whether to display geometry of class GeometryClass.Pattern.

textures
Boolean

In RenderMode.SmoothShade, whether to apply RenderTextures to surfaces.

wiremesh
Boolean

If true, overlay surfaces with wiremesh to reveal their triangulation.

materials
Boolean

In RenderMode.SmoothShade, whether to apply RenderMaterial]s to surfaces.

clipVolume
Boolean

Whether to apply the view's clip volume to the geometry in the scene.

dimensions
Boolean

Whether to display geometry of class GeometryClass.Dimension.

monochrome
Boolean

Whether to produce a monochrome image.

ViewFlagOverrides renderMode

The basic rendering mode applied to the view. This modulates the behavior of some of the other flags.

hiddenEdges
Boolean

In any mode except RenderMode.Wireframe, whether to display the edges of surfaces occluded by other geometry. This has no effect unless visibleEdges is also true.

transparency
Boolean

Whether element transparency is applied. If false, transparent geometry is drawn opaque.

visibleEdges
Boolean

In RenderMode.SmoothShade, whether to display the edges of surfaces.

backgroundMap
Boolean

Whether to display background map imagery.

constructions
Boolean

Whether to display geometry of class GeometryClass.Construction.

ambientOcclusion
Boolean

In RenderMode.SmoothShade, whether to apply AmbientOcclusion.

BackgroundMapProps globeMode

Globe Mode.

Name
Type
Description
Ellipsoid
String
Plane
String

BackgroundMapProps

Name
Type
Description
BackgroundMapProps globeMode

Globe Mode.

groundBias
Number

The elevation of the map in meters relative the WGS84 ellipsoid.

applyTerrain
Boolean

If true, terrain heights will be applied to the map; otherwise the map will be rendered as a plane.

nonLocatable
Boolean

If true, the map will be treated as non-locatable - i.e., tools will not interact with it. This is particularly useful when the map is transparent - it allows the user to select elements that are behind the map.

transparency
Object

A transparency value from 0.0 (fully opaque) to 1.0 (fully transparent) to apply to map graphics when drawing, or false to indicate the transparency should not be overridden.

planarClipMask
useDepthBuffer
Boolean

If set to true, the map tiles will be rendered with depth, allowing them to obscure other geometry. Otherwise, they are always rendered behind all other geometry.

terrainSettings

LightSettingsProps

Name
Type
Description
numCels
Number

Applies a cel-shaded effect. If greater than zero, specifies the number of cels.

specularIntensity
Number

Specular intensity applied to all lights.

ViewVisibilityList

Name
Type
Description
enabled
String[], null

List of Ids that should be enabled/visible.

disabled
String[], null

List of Ids that should be disabled/hidden.

PlanarClipMaskProps mode

Controls how the mask geometry is collected.

Name
Type
Description
None
String
Priority
String
Models
String
IncludeSubCategories
String
IncludeElements
String
ExcludeElements
String

PlanarClipMaskProps priority

The priority of the planar clip mask.

Name
Type
Description
RealityModel
String
DesignModel
String
-2048
String
-1024
String

PlanarClipMaskProps

Name
Type
Description
PlanarClipMaskProps mode

Controls how the mask geometry is collected.

invert
Boolean

A value of true indicates that the mask should be inverted and only content within the mask should be displayed.

modelIds
String

Compressed Id set containing the model Ids.

PlanarClipMaskProps priority

The priority of the planar clip mask.

transparency
Number

The transparency of the planar clip mask. Between 0 (complete masking) and 1 (no masking).

subCategoryOrElementIds
String

Compressed Id set containing the sub category or element Ids.

FresnelSettingsProps

Name
Type
Description
invert
Number

Whether to inver the fresnel.

intensity
Number

Intensity of the fresnel.

HiddenLineStyleProps pattern

If defined, the pixel pattern used to draw the edges. If undefined, edges are drawn using the element's line pattern.

Name
Type
Description
0
String
Code0
String
Invisible
String
Code1
String
HiddenLine
String
Code5
String
Code6
String
Code2
String
Code4
String
Code7
String
Code3
String
-1
String

HiddenLineStyleProps

Name
Type
Description
width
Number

If defined, the width of the edges in pixels. If undefined (or 0), edges are drawn using the element's line width. Should be an integer between [1,32]

HiddenLineStyleProps pattern

If defined, the pixel pattern used to draw the edges. If undefined, edges are drawn using the element's line pattern.

overrideColor
Boolean

If true, color is overridden.

RealityDataSourceKey

Name
Type
Description
id
String

The reality data id that identify a reality data for the provider.

format
String

The format used by the provider to store the reality data.

iTwinId
String

The context id that was used when reality data was attached - if none provided, current session iTwinId will be used.

provider
String

The provider that supplies the access to reality data source for displaying the reality model.

AmbientOcclusionProps

Name
Type
Description
bias
Number

If defined, represents an angle in degrees. If the dot product between the normal of the sample and the vector to the camera is less than this value, sampling stops in the current direction. This is used to remove shadows from near planar edges.

blurDelta
Number

If defined, blurDelta is used to compute the weight of a Gaussian filter. The equation is exp((-0.5 * blurDelta * blurDelta) / (blurSigma * blurSigma)).

blurSigma
Number

If defined, blurSigma is used to compute the weight of a Gaussian filter. The equation is exp((-0.5 * blurDelta * blurDelta) / (blurSigma * blurSigma)).

intensity
Number

If defined, raise the final ambient occlusion to the power of this value. Larger values make the ambient shadows darker.

zLengthCap
Number

If defined, if the distance in linear depth from the current sample to first sample is greater than this value, sampling stops in the current direction. The full range of linear depth is 0 to 1.

maxDistance
Number

If defined, the maximum distance from the camera's near plane in meters at which ambient occlusion will be applied.

texelStepSize
Number

If defined, indicates the distance to step toward the next texel sample in the current direction.

blurTexelStepSize
Number

If defined, blurTexelStepSize indicates the distance to the next texel for blurring.

HemisphereLightsProps

Name
Type
Description
intensity
Number

Intensity of the lights.

lowerColor
upperColor

FeatureAppearanceProps linePixels

The pixel pattern used to draw lines.

Name
Type
Description
0
String
Code0
String
Invisible
String
Code1
String
HiddenLine
String
Code5
String
Code6
String
Code2
String
Code4
String
Code7
String
Code3
String
-1
String

FeatureAppearanceProps

Name
Type
Description
weight
Number

The line weight in pixels as an integer in [1, 31]

emphasized
Boolean

If true, the associated Feature will be emphasized. Emphasized features are rendered using the Hilite.Settings defined by Viewport.emphasisSettings

FeatureAppearanceProps linePixels

The pixel pattern used to draw lines.

nonLocatable
Boolean

If true, the associated Feature will not be drawn when using Viewport.readPixels.

transparency
Number

The transparency in the range [0.0, 1.0] where 0 indicates fully opaque and 1 indicates fully transparent.

ignoresMaterial
Boolean

If true, ignore the RenderMaterial associated with surfaces.

SpatialClassifierProps

Name
Type
Description
name
String

A user-friendly name, useful for identifying individual classifiers within a SpatialClassifiers.

expand
Number

A distance in meters by which to expand the classifier geometry. For example, if line strings are used to represent streets, you might expand them to the average width of a street.

modelId
String

The Id of the GeometricModel whose geometry is used to produce the classifier.

isActive
Boolean

Records whether this is the active classifier.

ClipPrimitivePlaneProps

Name
Type
Description

ClipPrimitiveShapeProps

Name
Type
Description

HiddenLineSettingsProps

Name
Type
Description
transparencyThreshold
Number

A value in the range [0.0, 1.0] specifying a threshold below which transparent surfaces should not be drawn. A value of 0.0 indicates any surface that is not 100% opaque should not be drawn. A value of 0.25 indicates any surface that is less than 25% opaque should not be drawn. A value of 1.0 indicates that all surfaces should be drawn regardless of transparency.

ContextRealityModelProps

Name
Type
Description
name
String

An optional, user-friendly name for the reality model suitable for display in a user interface.

tilesetUrl
String

The URL that supplies the 3d tiles for displaying the reality model.

classifiers

List of SpatialClassifierProps.

description
String

An optional, user-friendly description of the reality model suitable for display in a user interface.

realityDataId
String

Id of reality data.

planarClipMask
appearanceOverrides
realityDataSourceKey

SolarShadowSettingsProps

Name
Type
Description

DisplayStyleSettingsProps monochromeMode

The style in which the monochrome color is applied. Can be 1 (Scaled) or 0 (Flat).

Name
Type
Description
Flat
String
Scaled
String

DisplayStyleSettingsProps

Name
Type
Description
timePoint
Number

The point in time reflected by the view, in UNIX seconds.

viewflags
mapImagery
backgroundMap
modelOverrides

Overrides applied to the appearance of models in the view.

DisplayStyleSettingsProps monochromeMode

The style in which the monochrome color is applied. Can be 1 (Scaled) or 0 (Flat).

renderTimeline
String

The id of a Render Timeline element containing a schedule script that can be used to animate the view.

backgroundColor
monochromeColor
excludedElements
Object

Ids of elements not to be displayed in the view. It is preferred to use the compressed format, as the number of Ids may be quite large.

planarClipOverrides

Planar clip masks applied to reality models.

contextRealityModels

A list of ContextRealityModels attached to a DisplayStyleSettings.

subCategoryOverrides

Overrides applied to the appearances of subcategories in the view.

ClipIntersectionStyleProps

Name
Type
Description
width
Number

Number of pixels to be considered intersecting the clip plane, default 1.

DisplayStyle3dSettingsProps monochromeMode

The style in which the monochrome color is applied. Can be 1 (Scaled) or 0 (Flat).

Name
Type
Description
Flat
String
Scaled
String

DisplayStyle3dSettingsProps

Name
Type
Description
timePoint
Number

The point in time reflected by the view, in UNIX seconds.

viewflags
mapImagery
environment
backgroundMap
modelOverrides

Overrides applied to the appearance of models in the view.

DisplayStyle3dSettingsProps monochromeMode

The style in which the monochrome color is applied. Can be 1 (Scaled) or 0 (Flat).

renderTimeline
String

The id of a Render Timeline element containing a schedule script that can be used to animate the view.

backgroundColor
monochromeColor
planProjections
Object

Settings controlling how plan projection models are to be rendered. The key for each entry is the Id of the model to which the settings apply.

ambientOcclusion
excludedElements
Object

Ids of elements not to be displayed in the view. It is preferred to use the compressed format, as the number of Ids may be quite large.

planarClipOverrides

Planar clip masks applied to reality models.

contextRealityModels

A list of ContextRealityModels attached to a DisplayStyleSettings.

subCategoryOverrides

Overrides applied to the appearances of subcategories in the view.

SpatialClassifierFlagsProps inside

Describes how a SpatialClassifier affects the display of classified geometry - that is, geometry intersecting the classifier.

Name
Type
Description
Off
String
On
String
Dimmed
String
Hilite
String
ElementColor
String

SpatialClassifierFlagsProps outside

Describes how a SpatialClassifier affects the display of unclassified geometry - that is, geometry not intersecting the classifier.

Name
Type
Description
Off
String
On
String
Dimmed
String

SpatialClassifierFlagsProps

Name
Type
Description
SpatialClassifierFlagsProps inside

Describes how a SpatialClassifier affects the display of classified geometry - that is, geometry intersecting the classifier.

SpatialClassifierFlagsProps outside

Describes how a SpatialClassifier affects the display of unclassified geometry - that is, geometry not intersecting the classifier.

isVolumeClassifier
Boolean

True for volume classification; false for planar classification.

DisplayStyleSubCategoryProps

Name
Type
Description
style
String

Style Id to use.

weight
Number

The line width in pixels. Must be a value between [1,32].

material
String

Material Id to use.

priority
Number

Priority.

invisible
Boolean

Whether the subcategory is invisible or not.

subCategory
String

The Id of the SubCategory whose appearance is to be overridden.

transparency
Number

Transparency. Must be a value in the range [0,1]. 0.0 means fully opaque, and 1.0 means fully transparent.

transparencyFill
Number

Fill transparency. Must be a value in the range [0,1]. 0.0 means fully opaque, and 1.0 means fully transparent.

DisplayStylePlanarClipMaskProps mode

Controls how the mask geometry is collected.

Name
Type
Description
None
String
Priority
String
Models
String
IncludeSubCategories
String
IncludeElements
String
ExcludeElements
String

DisplayStylePlanarClipMaskProps priority

The priority of the planar clip mask.

Name
Type
Description
RealityModel
String
DesignModel
String
-2048
String
-1024
String

DisplayStylePlanarClipMaskProps

Name
Type
Description
DisplayStylePlanarClipMaskProps mode

Controls how the mask geometry is collected.

invert
Boolean

A value of true indicates that the mask should be inverted and only content within the mask should be displayed.

modelId
String

The Id of the model to mask.

modelIds
String

Compressed Id set containing the model Ids.

DisplayStylePlanarClipMaskProps priority

The priority of the planar clip mask.

transparency
Number

The transparency of the planar clip mask. Between 0 (complete masking) and 1 (no masking).

subCategoryOrElementIds
String

Compressed Id set containing the sub category or element Ids.

DisplayStyleModelAppearanceProps linePixels

The pixel pattern used to draw lines.

Name
Type
Description
0
String
Code0
String
Invisible
String
Code1
String
HiddenLine
String
Code5
String
Code6
String
Code2
String
Code4
String
Code7
String
Code3
String
-1
String

DisplayStyleModelAppearanceProps

Name
Type
Description
weight
Number

The line weight in pixels as an integer in [1, 31]

modelId
String

The Id of the model whose appearance is to be overridden.

emphasized
Boolean

If true, the associated Feature will be emphasized. Emphasized features are rendered using the Hilite.Settings defined by Viewport.emphasisSettings

DisplayStyleModelAppearanceProps linePixels

The pixel pattern used to draw lines.

nonLocatable
Boolean

If true, the associated Feature will not be drawn when using Viewport.readPixels.

transparency
Number

The transparency in the range [0.0, 1.0] where 0 indicates fully opaque and 1 indicates fully transparent.

ignoresMaterial
Boolean

If true, ignore the RenderMaterial associated with surfaces.

Was this page helpful?