View Full Version : Inquire GUID from object
2006-06-21, 01:15 PM
I am wondering how to inquire a GUID from objects, I haven't found anything from the object browser which was helping my to get something out. In general I am looking for a methode to extract ID (which I can inquire) and the corresponding GUID, which I would loke to get out in a report. Any comments, ideas highly appreciate!
In advance thanks a lot,
2006-06-21, 11:45 PM
The "ID" is the unique ID number of the element. It never changes in the model for that element, so it can be stored externally to retreive the element again if needed. It functions like a GUID.
Not sure why you would need that for a report, though. Can you explain further what you're trying to do if that doesn't answer your question?
Hope that helps,
2006-06-22, 05:02 AM
thanks a lot for your reply! The "feature" I am looking for is data exchange related, the ID won't be enough in that sense.
Here a very specific example for the GUID: each Revit object has an ID, but when exporting the data to IFC, for instance, the GUID comes into play. So by the GUID I can track objects, also in cooperation with the object ID. The same appears to the IFC import, when importing IFC model into Revit.
Here a line from a IFC export:
#52=IFCWALL('3jij6eX$9Bww5CK1uMyf6g',#19,'Basic wall:875',$,'Basic wall:722',#31,#51,'875');
The string '3jij6eX$9Bww5CK1uMyf6g' represents the GUID, the information I am looking for.
But how to get this kind of information with the API, or even by a report?
2006-06-22, 07:39 AM
There's a built-in parameter called IFC_GUID, so you should be able to grab it with:
Hope that helps,
2006-06-22, 01:36 PM
found it, thanks a lot for the hint! I looked for the BuiltIn parameters already, but I just checked from version 8.x API, the IFC_GUID just came with version 9, respectively version 3 (when talking about Revit Structure).
Thanks a lot,
Powered by vBulletin® Version 4.1.11 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.