Skip to content

Features

Feature flags for the connected SketchUp session.

As the SketchUp team releases new features for the JavaScript API, we will update this collection. Checking these flags will allow you to support updated capabilities in your extension, while ensuring your users on older versions of SketchUp can be shown friendly error messages, or whatever makes sense.

Access it from SketchUpApi.features after connecting. Each feature corresponds to a minimum protocol version — if the connected SketchUp supports it, the supportsXxx flag is true. Each ensureSupportsXxx() method throws if the feature is unavailable, which you can use to guard API calls.

let { features } = SketchUpApi;
console.log(features.supportsScenes);
// => true
console.log(features.supportsRenderingOptions);
// => true
console.log(features.supportsCRSLocation);
// => true

readonly ensureSupportsActivePath: () => void

Throws if active path is not supported.

void


readonly ensureSupportsColorizeType: () => void

Throws if colorize type is not supported.

void


readonly ensureSupportsCRSLocation: () => void

Throws if CRS location is not supported.

void


readonly ensureSupportsCurves: () => void

Throws if curves are not supported.

void


readonly ensureSupportsDimensions: () => void

Throws if dimensions are not supported.

void


readonly ensureSupportsFaceUVs: () => void

Throws if face UVs are not supported.

void


readonly ensureSupportsFollowMe: () => void

Throws if follow-me is not supported.

void


readonly ensureSupportsImageEntity: () => void

Throws if image entity is not supported.

void


readonly ensureSupportsModelExport: () => void

Throws if model export is not supported.

void


readonly ensureSupportsModifyingModelOptions: () => void

Throws if modifying model options is not supported.

void


readonly ensureSupportsPlaceComponent: () => void

Throws if place component is not supported.

void


readonly ensureSupportsRenderingOptions: () => void

Throws if rendering options are not supported.

void


readonly ensureSupportsScenes: () => void

Throws if scenes are not supported.

void


readonly ensureSupportsSectionPlanes: () => void

Throws if section planes are not supported.

void


readonly ensureSupportsSelection: () => void

Throws if selection is not supported.

void


readonly ensureSupportsSkm: () => void

Throws if SKM is not supported.

void


readonly ensureSupportsSnaps: () => void

Throws if snaps are not supported.

void


readonly ensureSupportsStyles: () => void

Throws if styles are not supported.

void


readonly ensureSupportsText: () => void

Throws if text is not supported.

void


readonly ensureSupportsTextures: () => void

Throws if textures are not supported.

void


readonly supportCurves: boolean

true if curve operations are supported (protocol ≥ 1.20.0).


readonly supportsActivePath: boolean

true if active path queries are supported (protocol ≥ 1.14.0).


readonly supportsColorAttributes: boolean

true if color attribute operations are supported.


readonly supportsColorizeType: boolean

true if material colorize type is supported (protocol ≥ 1.12.0).


readonly supportsConstructionPoints: boolean

true if construction point queries are supported (protocol ≥ 1.5.0).


readonly supportsCRSLocation: boolean

true if CRS location operations are supported (protocol ≥ 1.25.0).


readonly supportsDimensions: boolean

true if dimension entities are supported.


readonly supportsEvents: boolean

true if JS Extension events are supported (protocol ≥ 1.24.0).


readonly supportsFaceConnections: boolean

true if face connection queries are supported.


readonly supportsFaceUVs: boolean

true if face UV queries are supported (protocol ≥ 1.22.0).


readonly supportsFollowMe: boolean

true if the follow-me tool is supported.


readonly supportsGetArea: boolean

true if face area queries are supported.


readonly supportsGlueing: boolean

true if gluing operations are supported.


readonly supportsImageEntity: boolean

true if image entity operations are supported (protocol ≥ 1.18.0).


readonly supportsMaterialThumbnails: boolean

true if material thumbnails are supported.


readonly supportsModelExport: boolean

true if model export is supported (protocol ≥ 1.8.0).


readonly supportsModifyingModelOptions: boolean

true if model options can be modified (protocol ≥ 1.15.0).


readonly supportsPlaceComponent: boolean

true if the place-component tool is supported (protocol ≥ 1.16.0).


readonly supportsRenderingOptions: boolean

true if rendering option queries are supported (protocol ≥ 1.21.0).


readonly supportsScenes: boolean

true if scene queries are supported (protocol ≥ 1.7.0).


readonly supportsScreenshotRenderOptions: boolean

true if screenshot render options (scale, etc.) are supported (protocol ≥ 1.25.2).


readonly supportsSectionPlanes: boolean

true if section plane operations are supported (protocol ≥ 1.13.0).


readonly supportsSelection: boolean

true if selection queries are supported (protocol ≥ 1.11.0).


readonly supportsSkm: boolean

true if SKM material loading is supported.


readonly supportsSnaps: boolean

true if snap point queries are supported (protocol ≥ 1.17.0).


readonly supportsStyles: boolean

true if style operations are supported (protocol ≥ 1.23.0).


readonly supportsTenants: boolean

true if multi-tenant model access is supported (protocol ≥ 1.10.0).


readonly supportsText: boolean

true if text entity operations are supported (protocol ≥ 1.19.0).


readonly supportsTextures: boolean

true if texture operations are supported (protocol ≥ 1.9.0).


readonly supportsTransparentOperations: boolean

true if transparent operation overlays are supported.


readonly supportsVertexPersistentIds: boolean

true if vertex persistent IDs are supported (protocol ≥ 1.21.1).