Is there a method to follow a copy/move for my userdata

I have an object with userdata. When the object is copied and moved by rhino instead of plugin, the userdata must follow the change, so I need a method to get the copy/move event and its target object and its movement matrix.
I had try the event BeforeTransformObjects, its event object is original one, not the target, so it cannot work for me.
Is there a mothod to solve it?
Note that the copy/move is done by rhino, so my plugin seems to get it only by event or a hook.

Hi @chen_manhong,

The the user data your attaching inherits from UserData, then make sure to override the UserData.OnTransform virtual method. This method will be called when the object associated with this data is transformed.

Here is an example:


– Dale