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
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

chrisatsafe
Safer
Forum|alt.badge.img+2

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.


Thanks alot!

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


A colleague of mine found another solution:

IFC Creation Date