@DanRathbun active_scope
is a custom method pluged onto the Sketchup::Model
that alows me to retrieve either the user selection if one if define or the model content. This is used at many places in my code. It has nothing to do with the active_entities
, I’m not working with it at all to avoid what you’re pointing
class Sketchup::Model
def active_scope
( selection.empty? ? entities.to_a : selection.to_a)
end
end
That’s exactly why I didn’t want to post some code because there is a lack of code context with only a part of it. Meaning why I was explaining the approach to check that it should be the good one or not.