Feature Request : Rhino Document Guid / ID



Dear Rhino Development Team,

I would like to formally request the addition of a Rhino File Attribute - ID. (GUID)

A unique ID that can be accessed for a file to determine the true identity of a file.

These ID’s would be assigned once, and only once, to a file when it is created or saved. When a file is open this would provide developers with a means to identify the file on a more persistent basis than the current ID logic (memory/file indexing).

I wasn’t sure what category to place this request so I’ve left it as ‘uncategoriezed’. It would be nice to have a category for this type of request or comment, etc.

(Steve Baer) #2

I’m still trying to figure out what this is needed for. I read you other post on this topic, but still don’t quite understand why you need this. Could you explain a little more about what it is you are trying to achieve? Sorry for my being dense on this one; I just want to make sure I understand the purpose so I can do what makes the most sense

Document Guid?


Please, no, it’s quite okay - don’t feel dense! I have a tremendous amount of respect for you and your team’s work!

I would like a method for identifying files that is reliable so that I can, in the best way possible, assign my 3rd party data to a file (or series of files) in a robust way.

Does this help? Do you need any additional information?



Clement has shown me a method that I was not aware of but that seems to do the trick by letting me assign a persistent guid value to a file using a SetString Method [ here ].

I will happily withdraw the previous request! Thanks for reading the request and replying to my entry - it’s appreciated.


I would like a Rhino Document Guid! I am working on a custom file export, and I would like to know if this is the same document as one that was previously exported. The name/path alone do not guarantee uniqueness. Although I could use the SetString Method suggested by tree, I do not want to require the user to save their model.

(Dale Fugier) #6

Hi @Mary_Graham,

Attached is the source code to a simple plug-in that adds “Document Id” to every new document created and to documents you open that don’t have an id. The document id can be retrieved by all Rhino scripting and programming tools as it’s stored as document user text.

Perhaps this helps you, in lieu of any core change to Rhino?

DocumentId.zip (3.2 KB)

– Dale


Ideally I would like my customer to be able to open any document they already have, use my export plugin to create the custom export file, and close their document, without having to change or save anything. The documents they export could be sourced from anywhere.

(Dale Fugier) #8

Hi @Mary_Graham,

True. But users frequently copy files and uses them as templates. So it would be possible to have the same unique document id in multiple documents, thus making the document id not so unique.

– Dale


That is a valid point.