mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-14 03:14:23 +00:00
entity_instance: switch to use of declaration as a property
Fixes most of the bonsai tests.
This commit is contained in:
@@ -17,7 +17,7 @@ def main() -> int:
|
||||
|
||||
model = ifx.file.with_path(sys.argv[1])
|
||||
for wall in model.instances_by_type("IfcWall"):
|
||||
print(f"#{wall.id()} {wall.declaration().name()}")
|
||||
print(f"#{wall.id()} {wall.declaration.name()}")
|
||||
return 0
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user