Skip to content

Commit

Permalink
fixed #383
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Sep 29, 2023
1 parent a78a0ad commit f1f40ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nodes/2.x/python/Element.SubComponents.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ def GetSubComponents(item):
# Beam systems
elif hasattr(item, "GetBeamIds"):
return [item.Document.GetElement(x) for x in item.GetBeamIds()]
# Multi segment grids
elif hasattr(item, "GetGridIds"):
return [item.Document.GetElement(x) for x in item.GetGridIds()]
else: return []

if isinstance(IN[0], list): OUT = [GetSubComponents(x) for x in items]
Expand Down

0 comments on commit f1f40ba

Please sign in to comment.