Userdata - Custom Objects - *Unexpected Constraint*

I just ran into what i think is an undocument constraint for Plugin UserData Objects.

I made a new UserData - but within a second DLL which i reference from our plugin.

[Guid("3b4b4cf6-e319-4a56-8b8a-989eb70f7451")]
public class MyData: UserData { }

I then get this exception in UserDataList.cs

I assume this fails because there is no Plugin class in this second DLL.

Is there any way around this?

If not can we add a line to the follow documents to explain the constraint.

Rhino - User Data (rhino3d.com)
Rhino - Plugin User Data (rhino3d.com)

Currently there is no way around this, user data must be defined in the plugin DLL. There is an existing issue for this; I have added a request to document this limiation.
see https://mcneel.myjetbrains.com/youtrack/issue/RH-23446

The issue comes up now and then on the forum.

1 Like