I have created a set of groups, and also defined a common Observer for all of them in the following way:
class GroupObserver < Sketchup::InstanceObserver def onEraseEntity (group) name = group.name end end group.add_observer ( GroupObserver.new )
When I remove a group, I would like to retrieve the name of the group removed. Debugging I have observed that when entering the method the element is already deleted, so it is not valid. Is it possible to have access to the entity info inside the onEraseEntity method? If not, is there any other way to solve this issue?