Platform
Information about the SketchUp platform the extension is running on — desktop, web, or iPad.
Access it from SketchUpApi.platform after connecting. Use
it to write platform-specific code or gate features on the
SketchUp version.
Example
Section titled “Example”let { platform } = SketchUpApi;
console.log(platform.platform);// => 'WEB', 'Desktop', or 'iPad'console.log(platform.isDesktop);// => false (on web)console.log(platform.majorVersion);// => 2026Properties
Section titled “Properties”majorVersion
Section titled “majorVersion”
readonlymajorVersion:number
The parsed major version number, like 2026.
platform
Section titled “platform”
readonlyplatform:string
The platform identifier — 'WEB', 'Desktop',
'DesktopRuby', or 'iPad'.
platformFeatures
Section titled “platformFeatures”
readonlyplatformFeatures:string[]
The list of feature flags enabled for this platform.
SketchUpVersion
Section titled “SketchUpVersion”
readonlySketchUpVersion:Version
The full semantic version as a Version object — useful
for comparing against a minimum required version.
version
Section titled “version”
readonlyversion:string
The SketchUp version string, like '2026.0'.
Accessors
Section titled “Accessors”isDesktop
Section titled “isDesktop”Get Signature
Section titled “Get Signature”get isDesktop():
boolean
true when running inside SketchUp Desktop (Windows or Mac).
Returns
Section titled “Returns”boolean
isIpad
Section titled “isIpad”Get Signature
Section titled “Get Signature”get isIpad():
boolean
true when running inside SketchUp for iPad.
Returns
Section titled “Returns”boolean
Get Signature
Section titled “Get Signature”get isWeb():
boolean
true when running inside SketchUp Web (the browser app).
Returns
Section titled “Returns”boolean
supportsAmbientOcclusionColor
Section titled “supportsAmbientOcclusionColor”Get Signature
Section titled “Get Signature”get supportsAmbientOcclusionColor():
boolean
true if the ambient occlusion color property is supported.
Requires Desktop 2026 or later; always true on web and iPad.
Returns
Section titled “Returns”boolean
supportsConsistentUndoRevisions
Section titled “supportsConsistentUndoRevisions”Get Signature
Section titled “Get Signature”get supportsConsistentUndoRevisions():
boolean
true if undo history is consistent between operations.
false on DesktopRuby where the Ruby backend handles undo.
Returns
Section titled “Returns”boolean
supportsCreateDuplicateStyle
Section titled “supportsCreateDuplicateStyle”Get Signature
Section titled “Get Signature”get supportsCreateDuplicateStyle():
boolean
true if styles can be duplicated. Requires Desktop 26.2.0
or later; always true on web and iPad.
Returns
Section titled “Returns”boolean
supportsCRSLocation
Section titled “supportsCRSLocation”Get Signature
Section titled “Get Signature”get supportsCRSLocation():
boolean
true if CRS (Coordinate Reference System) location is
supported on this platform.
Returns
Section titled “Returns”boolean
supportsPBR
Section titled “supportsPBR”Get Signature
Section titled “Get Signature”get supportsPBR():
boolean
true if physically-based rendering (PBR) is available.
Requires SketchUp Desktop 2025 or later; always true on
web and iPad.
Returns
Section titled “Returns”boolean
supportsRemoveStyle
Section titled “supportsRemoveStyle”Get Signature
Section titled “Get Signature”get supportsRemoveStyle():
boolean
true if styles can be removed. Requires Desktop 25.1.0
or later; always true on web and iPad.
Returns
Section titled “Returns”boolean
supportsSceneGetActiveSectionPlanes
Section titled “supportsSceneGetActiveSectionPlanes”Get Signature
Section titled “Get Signature”get supportsSceneGetActiveSectionPlanes():
boolean
true if scene.getActiveSectionPlanes() is supported.
Requires Desktop 2026 or later; always true on web and iPad.
Returns
Section titled “Returns”boolean
supportsSceneReordering
Section titled “supportsSceneReordering”Get Signature
Section titled “Get Signature”get supportsSceneReordering():
boolean
true if scenes can be reordered. Requires Desktop 2025
or later; always true on web and iPad.
Returns
Section titled “Returns”boolean
supportsScreenshotRenderOptions
Section titled “supportsScreenshotRenderOptions”Get Signature
Section titled “Get Signature”get supportsScreenshotRenderOptions():
boolean
true if screenshot render options (like scale) are
supported. false on DesktopRuby.
Returns
Section titled “Returns”boolean
supportsSnaps
Section titled “supportsSnaps”Get Signature
Section titled “Get Signature”get supportsSnaps():
boolean
true if snap-point queries are supported. Requires Desktop
2025 or later; always true on web and iPad.
Returns
Section titled “Returns”boolean
uniqueSceneNames
Section titled “uniqueSceneNames”Get Signature
Section titled “Get Signature”get uniqueSceneNames():
boolean
true if scene names must be unique. Requires Desktop 2026
or later; always true on web and iPad.
Returns
Section titled “Returns”boolean
Methods
Section titled “Methods”ensureSupportsPBR()
Section titled “ensureSupportsPBR()”ensureSupportsPBR():
void
Throws if PBR is not supported on this platform and version. Use before calling PBR-related API methods.
Returns
Section titled “Returns”void
supportsColorizedImageType()
Section titled “supportsColorizedImageType()”supportsColorizedImageType(
dataType):dataType is ImageFileType
Returns true if the given image format is supported for
colorized screenshots. JPEG is not supported on SketchUp Web.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
image format string, e.g. |
Returns
Section titled “Returns”dataType is ImageFileType
supportsImageType()
Section titled “supportsImageType()”supportsImageType(
dataType):dataType is ImageFileType
Returns true if the given image format is supported for
screenshots. GIF is not supported on SketchUp Web.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
|
|
|
image format string, e.g. |
Returns
Section titled “Returns”dataType is ImageFileType
toString()
Section titled “toString()”toString():
string
Returns
Section titled “Returns”string
Deprecated
Section titled “Deprecated”Get Signature
Section titled “Get Signature”get isP11():
boolean
true when running inside SketchUp Web (the browser app).
Returns
Section titled “Returns”boolean