[question/wish] UserText value types?

I remember bring this up a while ago but I do not remember the thread.

Question:
What kind of types are used for values in user text?

  • string
  • integer
  • float
  • dictionary
  • tuple
  • list
  • other?

If it is just strings could you add the others too?

UserText by name is something I expect to store text aka strings.
For other data types you could use the UserDictionary

See also the property : https://developer.rhino3d.com/api/RhinoCommon/html/P_Rhino_Runtime_CommonObject_UserDictionary.htm

is UserDictionary attached to Rhino objects?

Here is the official guide on how to use userdata and dictionary with rhino common

All C# I know you love that :wink:

edit I take that back the sample does not explain how to use the userdictionary :thinking:

1 Like

Hi @dale,

Are there any examples of using UserDictionary class?
https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_DocObjects_Custom_UserDictionary.htm

Thanks in advance.

Here a search with UserDictionary in the developers samples repository: https://github.com/mcneel/rhino-developer-samples/search?q=UserDictionary&unscoped_q=UserDictionary

1 Like

Thanks @nathanletwory,

Is there a mechanism to display the contents of this dictionary in-rhino.

Is it already implemented/planned?
New panel similar to usertext?

No plans for a panel

1 Like