SelectedStyle
The currently active style and whether it has unsaved changes.
Retrieve it with model.getSelectedStyle(). The style
property gives you the Style object, and info tells you
whether rendering options have been changed since the style
was last saved.
Example
Section titled “Example”let model = await SketchUpApi.getActiveModel();let selected = await model.getSelectedStyle();
console.log(selected.style.name);// => '[Architectural Design Style]'console.log(selected.info.hasBeenModified);// => true if rendering options were changedSDK 2.26.0 Protocol 1.23.0
Properties
Section titled “Properties”
readonlyinfo:Readonly<ActiveStyleInfo>
Metadata about the active style, including modification state.
readonlystyle:Style
The active Style object.