Skip to content

Commit

Permalink
fix print_properties
Browse files Browse the repository at this point in the history
  • Loading branch information
Licini committed Aug 20, 2024
1 parent a237df4 commit 7a974e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compas_ifc/entities/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def add_entity(entity, parent_node):
print(spatial_tree.get_hierarchy_string(max_depth=max_depth))
print("")

def print_properties(self):
def print_properties(self, max_depth=2):
IfcObject = getattr(importlib.import_module(f"compas_ifc.entities.generated.{self.schema}"), "IfcObject")

if not isinstance(self, IfcObject):
Expand All @@ -271,7 +271,7 @@ def add_property(item, parent_node):
add_property(self.properties, root)

print("=" * 80 + "\n" + f"Properties of {self}\n" + "=" * 80)
tree.print_hierarchy()
print(tree.get_hierarchy_string(max_depth=max_depth))
print("")

def show(self):
Expand Down

0 comments on commit 7a974e7

Please sign in to comment.