Is there a way to select everything in the model?

Hi there,

Is there a way to select everything in the model? Essentially an API that does the same thing when the user hits Crtl/cmd+a.

The #add method is used to add entities to the selection.

model = Sketchup.active_model
entities = model.active_entities
selection = model.selection
selection.add(entities.to_a)
3 Likes