Cut Curve between points of intersection and the others

Hello, Could you give me some advice?

I’m trying to make railling and trim at front of Column.

The image of what i wanna do is below…

I can do

  • make railling by model line
  • get colum location
  • get colum width

I CAN’T do

  • make perpendicularline and get point of intersection
  • cut curve between the points and the others.
  • and do it on all of columns.

Can anyone know how to write the code in Dynamo?
Please explain the process step by step.

I use
Dynamo 1.2.2
Revit2018

Please excuse my poor English,
If you have any trouble understanding my English, please feel free to ask so I can clarify as best as I can.

Any assistance would be greatly appreciated,

My code is below
image

Maybe something like this:

RailingBetweenColumns.dyn (71.2 KB)

This what you’re looking for? :slight_smile:

I tried to keep the tangle to a minimum… Using the cross product of the line the columns are on and the Z-axis gives you the vector perpendicular to the line. Moving the column positions forward and backward along the line by half the column width gives the parameters to cut the line. Then it’s just a matter of moving the line and trimming at the parameters :slight_smile:


railingspacing.dyn (32.9 KB)

1 Like