Simplify part of the script

Hello, (sorry for the translation)

I modified a script to add multiple duct supports.

I corrected the beginning of the script to check and correct the direction of the lines (sheath)

  1. Direction of the lines (vector) to know if the line is on x or y

  2. Check the starting point (equality)  my case is ideal because either the starting point is the same or the end point of the line

  3. Reverse the line with curve.Reverse if the starting point is not equal

THANKS
gaine


The approach is not the right one, does not cover all the cases…
I’ll try to project the points from the shorter sheath line onto the other sheath.

Another method, with projection of the points of the short line on the other line.
A comment ?


Hi @alain.hamel ,

I find it difficult to understand what you’re trying to determine, could you explain a bit more in depth what you want to do?

Good morning,
I want to insert supports on parallel ducts
I calculated insertion points on the smallest of the ducts
then I have to transfer the points on the line of the other sheath
In the script it’s the part in green with a red arrow.
It works for 2 sheath but not for 3 or 4
a first lacing problem at Geometry.ClosestPointTo

it’s good I found :slight_smile: