Hide/Show rest of the model but with more control

So as an example I have this large model with nested components/groups of a city, each city block is a group and each building is a group nested inside that block and each room is a component inside the building group. When I keep modeling context is always helpful, so I need to turn on/off context constantly, but I don’t always need to the see the entire city, because it’s too much info, messy and can sometimes block things I want to reference to.
Is there functionality in the API to allow me to modified the hide/show rest of model function to only show the context one layer up in the component/group hierachy, or multiple layers based on a input? Or what is the name of method I can search that handles the show/hide rest of the model so I can study it.
Thank you!

Generally no. If any ancestor context or layers used by any “up tree” context is hidden, then any “down branch” context including your local context would also be hidden.

However perhaps setting all other geometry and objects hidden that are not in the direct ancestor lineage might work. You would need to walk the active edit path in reverse order setting undesired things hidden.

You also need to save the current visible state on things so you can restore them afterward.


I think there might be a feature request to control this in the main SketchUp Feature Request category.

It has been discussed in the Extensions category …

2 Likes

This functionality neither exists in the API or UI. What you can do is to save out part of your project as a separate file, edit it externally, and load it back in.