Connection line Grasshopper or Python

Good afternoon,

To experts and supporters
Is there a way using Grasshopper or Python to create a connecting line on the vertices of 2 closed curves at different heights, as in the attached image?

I have many repetitions for this type of work, and it usually takes a few hours.

I have also attached a 3dm file, which simulates my problem.

Thank you for your attention,


Connection line.3dm (159.8 KB)

This is a game of closest point sorting and list matching.

I would do it this way:


connect-corners.gh (10.0 KB)

Good afternoon,
First of all, thank you very much for your attention.
I am a beginner user of Grasshopper, and I have a lot to learn. I have some difficulties, such as installing tools that I do not have in Grasshopper.
I tried to open your .gh, but I got a message that a package of tools is missing for this.
I am attaching an image file, so you can see what I am explaining.
Can you help me with this?
Thank you.

Hi Leandro -

From those screenshots, it looks like you need to be running 8.14.
Please run the Rhino SystemInfo command and copy-paste the output here.
.wim

Rhino 7 SR37 2024-4-16 (Rhino 7, 7.37.24107.15001, Git hash:master @ d2e42f70b9d3aa58f6053e2998a0db2abcd7555b)
License type: Commercial, build 2024-04-16
License details: LAN Zoo Network Node

Windows 10 (10.0.19045 SR0.0) or greater (Physical RAM: 32Gb)

Rhino plugins that ship with Rhino
C:\Program Files\Rhino 7\Plug-ins\SolidTools.rhp “SolidTools”
C:\Program Files\Rhino 7\Plug-ins\Commands.rhp “Commands” 7.37.24107.15001
C:\Program Files\Rhino 7\Plug-ins\WebBrowser.rhp “WebBrowser”
C:\Program Files\Rhino 7\Plug-ins\rdk.rhp “Renderer Development Kit”
C:\Program Files\Rhino 7\Plug-ins\RhinoScript.rhp “RhinoScript”
C:\Program Files\Rhino 7\Plug-ins\RPC.rhp “RPC”
C:\Program Files\Rhino 7\Plug-ins\AnimationTools.rhp “AnimationTools”
C:\Program Files\Rhino 7\Plug-ins\IdleProcessor.rhp “IdleProcessor”
C:\Program Files\Rhino 7\Plug-ins\RhinoRenderCycles.rhp “Rhino Render” 7.37.24107.15001
C:\Program Files\Rhino 7\Plug-ins\Displacement.rhp “Displacement”
C:\Program Files\Rhino 7\Plug-ins\3dxrhino.rhp “3Dconnexion 3D Mouse”
C:\Program Files\Rhino 7\Plug-ins\Toolbars\Toolbars.rhp “Toolbars” 7.37.24107.15001
C:\Program Files\Rhino 7\Plug-ins\RhinoRender.rhp “Legacy Rhino Render”
C:\Program Files\Rhino 7\Plug-ins\RhinoCycles.rhp “RhinoCycles” 7.37.24107.15001
C:\Program Files\Rhino 7\Plug-ins\rdk_etoui.rhp “RDK_EtoUI” 7.37.24107.15001
C:\Program Files\Rhino 7\Plug-ins\rdk_ui.rhp “Renderer Development Kit UI”
C:\Program Files\Rhino 7\Plug-ins\Alerter.rhp “Alerter”
C:\Program Files\Rhino 7\Plug-ins\NamedSnapshots.rhp “Snapshots”

Hi Leandro -

Yes, you need to be running Rhino 8 to be able to use those components.
-wim