I found this UserData class and I think this is what I am looking for. The problem is, that I still can’t get a simple example working. What would really help me is if someone has a small example how to set and get a value from rhinos document usertexts with the grasshopper vbscript componant.
Runtime error (NotSupportedException): This type of object is not supported in Grasshopper, so this Python script cannot create it. You might want to use ‘scriptcontext.doc = Rhino.RhinoDoc.ActiveDoc’ to use the Rhino doc, instead? If you do, remember to restore it: ‘scriptcontext.doc = ghdoc’.
Traceback:
line 107, in GetDocumentUserText, “C:\Users*\AppData\Roaming\McNeel\Rhinoceros\7.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\rhinoscript\userdata.py”
line 13, in script