Skip to main content
Solved

Hi, Does anyone know how to extract the Creation Date of an IFC file?


I'm trying to extract the Creation Date of an IFC file. 

It is usually located under IfcProject in viewers like Solibri, but I can't seem to find it.

I want to read a folder containing a bunch of IFC files, and create a list of when the files were last created.

IFC Creation Date SolibriIFC Creation Date

Best answer by chrisatsafe

Hi @j.sveinson​ ,

 

Similar to opening the IFC in a text editor, you can read in the IFC with a text file reader and parse the header info everything after Creation Date until the next line.

 

I did a quick test with a few IFC's I had lying around and although the header info was formatted differently, it worked just fine. 2021-06-24_15-43-45In your example, you could follow similar logic but instead of using an AttributeSplitter, you could simply use a SubstringReplacer and AttributeTrimmer to get the desired value after reading the IFC as text, and filtering for the feature that begins with "Creation Date:"

2021-06-24_15-50-14 

Hope that helps.

View original
Did this help you find an answer to your question?

3 replies

chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • Best Answer
  • June 24, 2021

Hi @j.sveinson​ ,

 

Similar to opening the IFC in a text editor, you can read in the IFC with a text file reader and parse the header info everything after Creation Date until the next line.

 

I did a quick test with a few IFC's I had lying around and although the header info was formatted differently, it worked just fine. 2021-06-24_15-43-45In your example, you could follow similar logic but instead of using an AttributeSplitter, you could simply use a SubstringReplacer and AttributeTrimmer to get the desired value after reading the IFC as text, and filtering for the feature that begins with "Creation Date:"

2021-06-24_15-50-14 

Hope that helps.


  • Author
  • June 25, 2021

Thanks alot!

I think this will be a good solution for my use case! 😀


  • Author
  • July 8, 2021

A colleague of mine found another solution:

IFC Creation Date


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings