![]() I've looked at schema reference but can't find the correct one. Which means that I can access IfcElementQuantity but none of the Attributes work. The output from this code is nevertheless: IfcPropertySet There is an error no matter what I place after step1 = line., none of the following give a result: line.IfcPropertySet If line.is_a() = 'IfcRelDefinesByProperties' or line.is_a() = 'IfcRelDefinesByType': The following is the relevant code: for geometry in geometries: Not sure how to solve this and would appreciate help.įurther work which gets the slab and further references: for geometry in geometries:Īs of this moment the obstacle is the compatibility with IFC4, which I will try to recompile with instructions from this forum post.įurther work using for now the IFC 2x3 standard, with a file that has quantity information (verified via the raw data). "entity instance of type '%s' has no attribute '%s'" % (self.wrapped_data.is_a(), name))ĪttributeError: entity instance of type 'IfcSlab' has no attribute 'IfcPhysicalQuantity' No matter which type of function I try to place for the test = geometry.X(), I get an error: File "C:\Python27\lib\site-packages\ifcopenshell\entity_instance.py", line 48, in _getattr_ I am trying to read the deepest level of quantities for objects in an ifc file, using IfcOpenShell in Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |