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]);