Can anybody help in knowing that IFC entites are Case Senstive or Case insenstive.
like
Can we write IFCPERSON as IfcPerson (camel case) and ifcperson (small)
in an .ifc file
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
IfcOpenShell only parses SPFF files in uppercase, but has a mixed case representation for pretty printing and other serialization formats. IfcOpenShell reads the entity definitions from the EXPRESS schema. http://www.buildingsmart-tech.org/ifc/IFC4/Add2TC1/IFC4.exp
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Again, this depends on the situation. If you write an SPFF file it will print in uppercase. If you use the latebound schema inspection tools it will typically return entity names in the original mixed case.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The problem in using write function is it produces many enties double times (like ifcperson come twice and no need of it) in ifc file and it become so huge to study and work with it.
example if person is written by both IFCPERSONANDORGANIZATION and IFCOWNERHISTORY so we have to study about these that who are dependent on whom.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
IFC is a graph so if you create multiple instances they are going to be separate instances in the file. This has nothing to do with the write function as it just serializes the model to disk. Only if you create multiple IfcPerson in your own code they are going to be separate instances in the file.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can anybody help in knowing that IFC entites are Case Senstive or Case insenstive.
like
Can we write IFCPERSON as IfcPerson (camel case) and ifcperson (small)
in an .ifc file
Interesting question. Indeed bSI forums proved to be a better place to ask: https://forums.buildingsmart.org/t/ifc-entities-are-case-sensitive-or-not/1143/10
ok i will,
but also tell me what IFCOPENSHEEL consider it , mean ifcopenshell use IFC entities as camel sase or upper case .
IfcOpenShell only parses SPFF files in uppercase, but has a mixed case representation for pretty printing and other serialization formats. IfcOpenShell reads the entity definitions from the EXPRESS schema. http://www.buildingsmart-tech.org/ifc/IFC4/Add2TC1/IFC4.exp
These all Entities are in camel Case so what it mean ,
Will IFCopenshell prints IFC in camel case
Again, this depends on the situation. If you write an SPFF file it will print in uppercase. If you use the latebound schema inspection tools it will typically return entity names in the original mixed case.
How to write SPFF file?
Can you guide how to work and get SPFF printed.
Python:
The problem in using write function is it produces many enties double times (like ifcperson come twice and no need of it) in ifc file and it become so huge to study and work with it.
example if person is written by both IFCPERSONANDORGANIZATION and IFCOWNERHISTORY so we have to study about these that who are dependent on whom.
IFC is a graph so if you create multiple instances they are going to be separate instances in the file. This has nothing to do with the write function as it just serializes the model to disk. Only if you create multiple IfcPerson in your own code they are going to be separate instances in the file.
@Tandeep Singh
Please refer: https://github.com/jakob-beetz/IfcOpenShellScriptingTutorial/wiki/01:-Working-with-the-IFC-model
Last edit: hsrai 2019-03-16
i also studied this but it is not helping to write ifc file. it is just telling how to extract data from ifc file.
.
Last edit: TANDEEP SINGH 2019-03-15