Revision history  [back]

How to access openstudio model via Sketchup 2021 ruby console?

whereas in Sketchup 2017

model = Sketchup.active_model.model_interface.openstudio_model

in Sketchp 2021, the above returns an error message saying something like 'no such thing as .model_interface'.

I guess the Sketchup SDK changed.

Whats the new magic words to get to the openstudio model?

How to access openstudio model via Sketchup 2021 ruby console?

whereas in Sketchup 2017

model = Sketchup.active_model.model_interface.openstudio_model

in Sketchp 2021, the above returns an error message saying something like 'no such thing as .model_interface'.

I guess the Sketchup SDK changed.

Whats the new magic words to get to the openstudio model?