From f1f40ba41c45bf8545c7cbcd97df28fe743284f9 Mon Sep 17 00:00:00 2001 From: Andreas Dieckmann Date: Fri, 29 Sep 2023 06:32:08 +0200 Subject: [PATCH] fixed #383 --- nodes/2.x/python/Element.SubComponents.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nodes/2.x/python/Element.SubComponents.py b/nodes/2.x/python/Element.SubComponents.py index 5c645272..71797ef4 100644 --- a/nodes/2.x/python/Element.SubComponents.py +++ b/nodes/2.x/python/Element.SubComponents.py @@ -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]