Hi all!
I’ve been working with the json files that can be exported from SBIM inside Revit.
For the axes and placements an uid is generated in the json file. The goal of this is being able to generate from my side a json file with the parameters in the axes and placement from an external database, as a json file is a editable plain text.
Has anybody information in how the uids are generated from SBIM so that I can generate by myself?
Hi,
The UID is simply an unique text identifier separated by hyphens, i.g. “12345678-1234-5678-1234-567812345678”.
How would you like to write the Json File. Using Python maybe ? check the uuid library
When the uid “2249016c-90e2-46c3-aea7-6c7080b7be2a” is checked it seems to be a valid ramdom 4 generated uid.
If I use in python the : “uuid.uuid4()” to generate a random4 uuid I get for instance the following uid:“9b15530e-38a5-45d8-8f13-5b790903bd53” which I later use in the json file.
Then I try to import in SBIM and the following error appears:
“SiX - Execution could not be completed: La secuencia no contiene elementos”