Skip to main content
Best Answer

Is the IFC entities are case senstive?

  • March 13, 2019
  • 6 replies
  • 33 views

Forum|alt.badge.img

Greetings for the day,

 

Can anyone please help me to know that IFC entities are case sensitive or not.

 

For example, if I use “ifcproduct” or “IfcProduct” instead of “IFCPRODUCT” in .ifc file it is right or not.

 

Thank you.

Best answer by jovitaatsafe

Hi @sidhucivil5932,

Thanks for your question! I believe it is case sensitive, and the general rule seems to be camel casing, where the first letter of the word is capitalized like IfcProduct. I ran a quick test changing the casing writing out to IFC and the geometry disappears. The same output with differing casing doesn't read properly in an IFC viewer like DDS-CAD either. Here's some links to check out to read more on it:

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.

6 replies

geosander
Forum|alt.badge.img+7
  • March 13, 2019

As far as I know, this is the case (pun intended), yes :)


jovitaatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • Best Answer
  • March 13, 2019

Hi @sidhucivil5932,

Thanks for your question! I believe it is case sensitive, and the general rule seems to be camel casing, where the first letter of the word is capitalized like IfcProduct. I ran a quick test changing the casing writing out to IFC and the geometry disappears. The same output with differing casing doesn't read properly in an IFC viewer like DDS-CAD either. Here's some links to check out to read more on it:


Forum|alt.badge.img

Hi @sidhucivil5932,

Thanks for your question! I believe it is case sensitive, and the general rule seems to be camel casing, where the first letter of the word is capitalized like IfcProduct. I ran a quick test changing the casing writing out to IFC and the geometry disappears. The same output with differing casing doesn't read properly in an IFC viewer like DDS-CAD either. Here's some links to check out to read more on it:

Thank you @jovitaatsafe for your help.

I will definatly go through these links.


Forum|alt.badge.img

As far as I know, this is the case (pun intended), yes :)

Thank you @sander.


Forum|alt.badge.img

Greetings for the day,

When we create or export IFC file all the entities are in "uppercase" format.

I used IFCOPENSHELL and PYTHON to extract some of the entities from the IFC file and I got the resulting IFC file after extraction having entities in "camelcase" which is before extraction in "caps case". Why?

Also, IFC file having entities in camelcase (which I got after extraction) is not opening in viewers like SOLIBRI MODEL VIEWER and DDS-CAD.

Please help me to understand these.

Thank you.

 


jovitaatsafe
Safer
Forum|alt.badge.img+11

Greetings for the day,

When we create or export IFC file all the entities are in "uppercase" format.

I used IFCOPENSHELL and PYTHON to extract some of the entities from the IFC file and I got the resulting IFC file after extraction having entities in "camelcase" which is before extraction in "caps case". Why?

Also, IFC file having entities in camelcase (which I got after extraction) is not opening in viewers like SOLIBRI MODEL VIEWER and DDS-CAD.

Please help me to understand these.

Thank you.

 

I checked in with a colleague, and my apologies for the confusion. In your workspace in FME Workbench, it should be camelcase, but in the IFC file itself, the feature types are all uppercase.

There's a bit more information on casing from this forum here on IFC.