Create an alignement within Dynamo

Hello,

I am working on a script that create an alignement depending of the geometry of a “master” alignement.
My question is the following :
In Civil 3D i can easily create a free spiral curve spiral between two lines that are not secant.

In Dynamo i can create my different straight lines but then just my first line is recognised as an entity of my alignement so i can not define the previous and next entity in my free spiralcurvespiral node


I found a workaround but it is not really satisfying : first i create my straight lines geometry in Dynamo then i extend them (with a fixed value so it doesn’t cover every geometrical cases that’s what i dislike in this workaround), i find the intersection points between each lines and then create my fixed lines in my alignement with these points so that my elements are touching each other and are recognized as entities…

If you have any ideas !

Hello,

Any idea @Paolo_Emilio_Serra1?

Hi, @bertrand.savarit !

CreateAlignment.dyn (58.1 KB)

CreateAlignment.dwg (1013.1 KB)

I tried adding it this way.
Maybe this will help you.
There might be better ways to do it.
Dynamo experts, what do you think?

You can calculate the intersection point from the line vectors. This avoids the need for extending lines by a fixed value.

I have only tested this with line geometry. If you could share an example of the alignment you are working on, then we could see how this can be applied to the alignment entities.

C3D_LineIntersectByVector.dyn (26.0 KB)