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”isDesktop
Section titled “isDesktop”
readonlyisDesktop:boolean
true when running inside SketchUp Desktop (Windows or Mac).
isIpad
Section titled “isIpad”
readonlyisIpad:boolean
true when running inside SketchUp for iPad.
readonlyisWeb:boolean
true when running inside SketchUp Web (the browser app).
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.
supportsAmbientOcclusionColor
Section titled “supportsAmbientOcclusionColor”
readonlysupportsAmbientOcclusionColor:boolean
true if the ambient occlusion color property is supported.
Requires Desktop 2026 or later; always true on web and iPad.
supportsConsistentUndoRevisions
Section titled “supportsConsistentUndoRevisions”
readonlysupportsConsistentUndoRevisions:boolean
true if undo history is consistent between operations.
false on DesktopRuby where the Ruby backend handles undo.
supportsCreateDuplicateStyle
Section titled “supportsCreateDuplicateStyle”
readonlysupportsCreateDuplicateStyle:boolean
true if styles can be duplicated. Requires Desktop 26.2.0
or later; always true on web and iPad.
supportsCRSLocation
Section titled “supportsCRSLocation”
readonlysupportsCRSLocation:boolean
true if CRS (Coordinate Reference System) location is
supported on this platform.
supportsPBR
Section titled “supportsPBR”
readonlysupportsPBR:boolean
true if physically-based rendering (PBR) is available.
Requires SketchUp Desktop 2025 or later; always true on
web and iPad.
supportsRemoveStyle
Section titled “supportsRemoveStyle”
readonlysupportsRemoveStyle:boolean
true if styles can be removed. Requires Desktop 25.1.0
or later; always true on web and iPad.
supportsSceneGetActiveSectionPlanes
Section titled “supportsSceneGetActiveSectionPlanes”
readonlysupportsSceneGetActiveSectionPlanes:boolean
true if scene.getActiveSectionPlanes() is supported.
Requires Desktop 2026 or later; always true on web and iPad.
supportsSceneReordering
Section titled “supportsSceneReordering”
readonlysupportsSceneReordering:boolean
true if scenes can be reordered. Requires Desktop 2025
or later; always true on web and iPad.
supportsScreenshotRenderOptions
Section titled “supportsScreenshotRenderOptions”
readonlysupportsScreenshotRenderOptions:boolean
true if screenshot render options (like scale) are
supported. false on DesktopRuby.
supportsSnaps
Section titled “supportsSnaps”
readonlysupportsSnaps:boolean
true if snap-point queries are supported. Requires Desktop
2025 or later; always true on web and iPad.
uniqueSceneNames
Section titled “uniqueSceneNames”
readonlyuniqueSceneNames:boolean
true if scene names must be unique. Requires Desktop 2026
or later; always true on web and iPad.
version
Section titled “version”
readonlyversion:string
The SketchUp version string, like '2026.0'.
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”
readonlyisP11:boolean
true when running inside SketchUp Web (the browser app).