Join paralel curves into one curve

Hi all,

I’m in the process of making a graph that creates a section view paralel to selected walls, which it does by getting the curves of the selected walls and placing a view accordingly.

I have an issue when i select two walls that differ in thickness:

I am trying to create a sectionview parallel to these two walls, it should have the total length of the walls added together. The problem i am encountering is that when i use polyCurve.ByJoinedCurves it doesnt actually create a single curve (understandibly) as the curves arent actually in extention of eachother.

As you can see the points differ slightly from eachother:
image

What would be the best way to approach this? I’m thinking of just rounding all the points as i dont need military grade accuracy to place my view but perhaps i’m missing a better approach here.

1 Like

Hey,

I created a rectangle around both walls and got the line closesed to a point i selected in the model.

The walls i used:

Packages used:

  • Sastrugi | v.2.0.2 (For selecting the point in revit, this is optional)
  • DynaMEP | v.2.0.1 (For the “Surface.Top” Node)
  • spring nodes | v.210.1.1 (For creating the rectangle)

I recommend getting the curve for the thinner wall, and extending the edge closest to the wider wall by the wider wall’s length (Curve.Extend node)