i have a large set of values from a form like integers, floats, boolans etc. which i am trying to write to and read from a Rhino document. Is there a way to accomplish this using an ArchivableDictionary with Python ?
The values could be written with DocumentUserText too but i am trying to avoid it since they would be visible and editable in Rhino 6 new User Text dialog unter Document Properties. They should only be editable through my forms.
There isnāt an ArchivableDictionary on the document, but if there were we would probably quickly run into the same problem because Iām sure there would be requests to expose this in the Rhino UI.
@Trav wrote the UI for the Document user text. Travis, are there certain keys that are not shown in the UI (maybe some sort of prefix on a key that marks it as hidden)?
@clement the only trouble i really see here is that while it would be hidden from the panel UI it wouldnāt be hidden from the command line if that matters?
Good thing the string table does not validate input.
@brian or @pascal, do we have any concept of hidden items like this anywhere else in Rhino? I know @JohnM wanted some of this functionality a long time ago while putting the last version of Flamingo together.
John is just referring to another system that we have that has the notion of hidden key/value combinations. This isnāt the appropriate system for saving data in files
Maybe āvisibleā was confusing? What I meant is that I donāt care if my document data could be displayed and edited with regular Rhino commands, like GetDocumentUserText and SetDocumentUserText.
This is the case if Iām using scriptcontext.doc.Strings to store custom data from Python. But as itās name says, its just holding strings and thus everything has to be converted to strings and of course back again to complex objects like for example vectors or point coordinates.
The ArchivableDictionary should handle that for me, but I donāt know how to use it.