UserData OnTransform not called when data is attached to a group

Hi!

I’ve attached some user data to a group. When I copy the group, the ‘OnDuplicate’ method is properly called, but when I move the group in the document, the method ‘OnTransform’ seems to never be called.

Am I missing something or it might be a bug somewhere? Perhaps it is generally a bad idea to attach UserData to groups?

@dale, maybe you’re the right man for this :sweat_smile:

Thanks in advance

Hi @jeffoulet,

Group does not inherit from GeometryBase. So it doesn’t have a Transform method. Thus, an overridden OnTransform method on a custom user data object attached to a group will never be called.

Hope this helps.

– Dale

1 Like

Hi @dale,

makes sense, thanks for your help.
I’ll try with a block instead.