From d632960afa227649c40574bfd11ef7f7d3ea9b57 Mon Sep 17 00:00:00 2001 From: MP Date: Fri, 3 May 2024 10:49:52 +0200 Subject: [PATCH] :bug: connection missing in case of plate #1012 --- FemDesign.Grasshopper/ModellingTools/LineConnection.cs | 4 ++++ FemDesign.Grasshopper/ModellingTools/PointConnection.cs | 4 ++++ FemDesign.Grasshopper/ModellingTools/SurfaceConnection.cs | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/FemDesign.Grasshopper/ModellingTools/LineConnection.cs b/FemDesign.Grasshopper/ModellingTools/LineConnection.cs index eb71878d2..ee07bbe93 100644 --- a/FemDesign.Grasshopper/ModellingTools/LineConnection.cs +++ b/FemDesign.Grasshopper/ModellingTools/LineConnection.cs @@ -109,6 +109,10 @@ protected override void SolveInstance(IGH_DataAccess DA) { refs[idx] = new GuidListType(bar.BarPart); } + else if (elements[idx] is Shells.Panel panel) + { + refs[idx] = new GuidListType(panel.InternalPanels.IntPanels[0].Guid); + } else { refs[idx] = new GuidListType(elements[idx]); diff --git a/FemDesign.Grasshopper/ModellingTools/PointConnection.cs b/FemDesign.Grasshopper/ModellingTools/PointConnection.cs index 12b3e02d5..9bc341e67 100644 --- a/FemDesign.Grasshopper/ModellingTools/PointConnection.cs +++ b/FemDesign.Grasshopper/ModellingTools/PointConnection.cs @@ -89,6 +89,10 @@ protected override void SolveInstance(IGH_DataAccess DA) { refs[idx] = new GuidListType(bar.BarPart); } + else if (elements[idx] is Shells.Panel panel) + { + refs[idx] = new GuidListType(panel.InternalPanels.IntPanels[0].Guid); + } else { refs[idx] = new GuidListType(elements[idx]); diff --git a/FemDesign.Grasshopper/ModellingTools/SurfaceConnection.cs b/FemDesign.Grasshopper/ModellingTools/SurfaceConnection.cs index 43d0bea4f..17d3adcc8 100644 --- a/FemDesign.Grasshopper/ModellingTools/SurfaceConnection.cs +++ b/FemDesign.Grasshopper/ModellingTools/SurfaceConnection.cs @@ -81,6 +81,10 @@ protected override void SolveInstance(IGH_DataAccess DA) { refs[idx] = new GuidListType(slab.SlabPart); } + else if (elements[idx] is Shells.Panel panel) + { + refs[idx] = new GuidListType(panel.InternalPanels.IntPanels[0].Guid); + } else { refs[idx] = new GuidListType(elements[idx]);