Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

How do you access the current model in the Sketchup ruby console?

I'm trying to do a custom filter for surface and would like to see the resulting ones (to go above and beyond the "filter tool"), and would like to write some lines of code directly in the sketchup ruby console, but I'm unclear on how to select the current model, so I can do stuff like model.getSurfaces.

How can I access the current model in the Sketchup ruby console?

How do you access the current model in the Sketchup ruby console?

I'm trying to do a custom filter for surface and would like to see the resulting ones (to go above and beyond the "filter tool"), and would like to write some lines of code directly in the sketchup ruby console, but I'm unclear on how to select the current model, so I can do stuff like model.getSurfaces.

How can I access the current model in the Sketchup ruby console?