Documentusertext GH VBScript

Hi all,

i’m trying to find a way in the grasshopper VBScript componant to set and get documentusertext into/from the rhino document.

I’m looking for something similar like the rhino commands “setdocumentusertext” and “getdocumentusertext”

Can someone help me with a small example?

Many thanks!

Hi all,

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.

https://developer.rhino3d.com/api/RhinoCommon/html/T_Rhino_DocObjects_Custom_UserData.htm

Many thanks!

See of the attached is helpful.

document_usertext.gh (6.0 KB)

– Dale

1 Like

Is there a method for retreiving document_usertext from a file other than the active document?