GroupTableEvent

Hello ,

I don’t know if it’s a bug or it’s just like that, but I created an event for the groups table and it is always activated when a group is created, however this same event is not called when the group is deleted by the user (delete)

“Rhino.RhinoDoc.GroupTableEvent”

However, if the group is delete by code "rs.DeleteGroup() " the event, it is already activated as expected.

This is a Bug?

How is this done?

– Dale

@dale

Selecting the group by mouse and press delete key.

I don’t know another way for a user to delete a group, is there another?

Thanks

This deletes objects that are grouped. It does not delete groups.

Hope this helps.

– Dale

Sorry dont help :laughing:

In the script I had already confirmed that there are empty groups within the project.

Well, I don’t know if this will be correct (delete the objects and keep the group), if the objects cease to exist then the group no longer makes sense and should be deleted, but that is not discussion for this topic.

So I have the event when the group is created, but I also need it when the group is deleted (or is empty), how can I get around this?, there is another type of event @dale ?

Thanks

No. The best you can do is watch for deleted objects and then check to see if your groups are empty.

– Dale