Skip to content

shape.transformation.matrix.data AttributeError: 'tuple' object has no attribute 'data' #15

Description

@bfrax

Describe the bug

python3 -u "testifc.py"
Opened file: duplex.ifc
Loading geometries...
Traceback (most recent call last):
File "C:\Users\Documents\tests\testifc.py", line 3, in
model = Model("duplex.ifc")
^^^^^^^^^^^^^^^^^^^
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\compas_ifc\model.py", line 83, in init
self.open(filepath, load_geometries=load_geometries)
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\compas_ifc\model.py", line 86, in open
self.reader.open(filepath, load_geometries=load_geometries)
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\compas_ifc\reader.py", line 70, in open
self.load_geometries()
File "C:\Users\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\compas_ifc\reader.py", line 174, in load_geometries
matrix = shape.transformation.matrix.data
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'data'

To Reproduce

from compas_ifc.model import Model
model = Model("duplex.ifc")
model.show()

compas_ifc.version: '0.5.0'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions