GetDocumentUserText but for the active document?

hey all, I have been using

rhinoscriptsyntax.GetDocumentUserText("Key")

to the value for key, is there anyway to get this user text for a particular document? Thanks!

Are you asking if you can get DocumentUserText from a different document than the current 3dm? Or are you asking if you can get UserText from a specific object within the current 3dm?

Thanks jcparks. I want to know if I can get DocumentUserText from a sepcified document(might not the current 3dm).

Instead of accessing it through RhinoScriptSyntax you can directly use RhinoCommon.

On the document you have a handle to you can use the RhinoDoc.Strings Property to access the string table. On that table use either StringTable.GetValue Method (String) or StringTable.GetValue Method (String, String)

1 Like

Thank you!