Skip to content

Commit

Permalink
removed subgroup from Element
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkasirer committed Nov 24, 2023
1 parent 96cdfc9 commit 70fd7c4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/compas_cadwork/datamodel/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from attribute_controller import get_subgroup
from attribute_controller import get_group
from attribute_controller import get_name
from attribute_controller import get_element_grouping_type
from utility_controller import get_language
from element_controller import get_element_type_description
from element_controller import get_active_identifiable_element_ids
Expand Down Expand Up @@ -99,20 +100,19 @@ def length(self) -> float:

@property
def group(self) -> str:
return get_group(self.id)

@property
def subgroup(self) -> str:
return get_subgroup(self.id)
if get_element_grouping_type() == cadwork.element_grouping_type.subgroup:
return get_subgroup(self.id)
else:
return get_group(self.id)

@property
def ifc_base64_guid(self) -> str:
return get_ifc_base64_guid(self.id)

@property
def cadwork_guid(self) -> str:
return get_element_cadwork_guid(self.id)

@property
def ifc_guid(self) -> str:
return get_ifc_guid(self.id)
Expand Down

0 comments on commit 70fd7c4

Please sign in to comment.