BCF IFC-GUID is not being recognized

BCF IFC-GUID is not being recognized

Anonymous
Not applicable
1,540 Views
2 Replies
Message 1 of 3

BCF IFC-GUID is not being recognized

Anonymous
Not applicable

Hello Revit Community, 

I work at Kalloc Studios on our flagship product Fuzor. We are converting our annotations files over to Bim Collaboration Format (.bcf) files. In the viewpoint.bcfv file every annotated component has a ifc guid. When syncing over a Revit (.rvt) file over to Fuzor I would like to port over the ifc guid to the BIM parameters using the Revit API. When generating the ifc guid parameter by calling GenerateParameter () with BuiltInParameter::IFC_GUID it shows that the ifc guid does not exists. Is this the correct way to get the ifc guid? If not, how would I proceed with getting the ifc Guid. Thank you in advanced.

Best Regards, 

Scott Case

0 Likes
Accepted solutions (1)
1,541 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk
Accepted solution

Dear Scott,

 

Thank you for your query.

 

I see that the BCF format is officially supported by Revit:

 

https://en.wikipedia.org/wiki/BIM_Collaboration_Format

 

However: Where does GenerateParameter come from?

 

I cannot see any such method in the Revit API:

 

http://www.revitapidocs.com/2020

 

I do see the enumeration value BuiltInParameter::IFC_GUID. That is used by the Revit IFC import and linking functionality when an IFC file is imported or linked into an RVT model. I don't see how you could make use of it to generate your own ids.

 

What you can do is use the ExporterIFCUtils class:

 

http://www.revitapidocs.com/2020/e0e78d67-739c-0cd6-9e3d-359e42758c93.htm

 

Its CreateAlternateGUID method might be the one you need:

 

http://www.revitapidocs.com/2020/7eee1508-c064-bc8d-ed79-76366948f15f.htm

 

Please test it and let us know whether it does indeed return the expected results for you.

 

Here are some previous discussions by The Building Coder on the IFC GUID:

 

 

I believe they contain all information you can possibly need.

 

Please let me know if you need anything further and I will gladly dig deeper.

 

I hope this helps.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

Message 3 of 3

Anonymous
Not applicable

Thank you Jeremy, that worked out perfectly!

 

~ Scott

0 Likes