Menu

IFC is Case senstive or not

Help
2019-03-12
2019-03-24
  • TANDEEP SINGH

    TANDEEP SINGH - 2019-03-12

    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

     
  • TANDEEP SINGH

    TANDEEP SINGH - 2019-03-15

    ok i will,
    but also tell me what IFCOPENSHEEL consider it , mean ifcopenshell use IFC entities as camel sase or upper case .

     
  • Thomas Krijnen

    Thomas Krijnen - 2019-03-15

    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

     
  • TANDEEP SINGH

    TANDEEP SINGH - 2019-03-15

    These all Entities are in camel Case so what it mean ,
    Will IFCopenshell prints IFC in camel case

     
    • Thomas Krijnen

      Thomas Krijnen - 2019-03-15

      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.

       
      • TANDEEP SINGH

        TANDEEP SINGH - 2019-03-16

        How to write SPFF file?
        Can you guide how to work and get SPFF printed.

         
        • Thomas Krijnen

          Thomas Krijnen - 2019-03-16

          Python:

          f = ifcopenshell.file() # or .open() depending on version
          f.createIfcPerson(...)
          f.write("person.ifc")
          
           
          • TANDEEP SINGH

            TANDEEP SINGH - 2019-03-24

            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.

             
            • Thomas Krijnen

              Thomas Krijnen - 2019-03-24

              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.

               
        • hsrai

          hsrai - 2019-03-16
           

          Last edit: hsrai 2019-03-16
          • TANDEEP SINGH

            TANDEEP SINGH - 2019-03-24

            i also studied this but it is not helping to write ifc file. it is just telling how to extract data from ifc file.

             
  • TANDEEP SINGH

    TANDEEP SINGH - 2019-03-15

    .

     

    Last edit: TANDEEP SINGH 2019-03-15

Log in to post a comment.