Create sweep follows 1 line and use another as a reference

Greeting,

I would like to gather some ideas of how to complete this exercise. There are 2 3d polylines(csv files can be provided to create those lines in Revit), consider one as a sweep path and another one as a reference for the sweep profile. There is a profile. I want to create a sweep that the a point follows 3d polyline A and another point B on 3D polyline B. In case there is a minor calculation difference/rounding, I plan to us A as a main sweep path and place point b on the line of the 3d polyline of A-B.

Do you have some ideas of how to achieve that? Thank you for all of your inputs in advance.

This is best achieved via the adaptive component environment as you can build it as a parametric form.

  1. Build the profile with 2 adaptive points ad the control (if possible I would recommend the leftmost and rightmost side of the hexagon, not the bottom curves).
  2. Get the points which define each path from the CSV and use them to build reference points.
  3. Build a model curve via the provided point sequences.
  4. Place the adaptive components using parametric control points along each curve.

Step 4 is the only ‘hard’ part, and to be blunt it is six clicks in the Revit UI so you might consider that as the alternative.

Using the lower edge of the hexagon likely will work fine, but you might get odd rotations for the other edges as there are two points more than one curve away from a control.

1 Like

Perhaps aligning yourself with the mean curve between the two curves might help you.

here’s a post you might find useful (note that these are 2D curves)

Thank you for your input. I see the benefits of using middle line as reference. I am thinking because of the rounding, the distance between those two curves aren’t fixed. It might be a challenge to maintain the hexagon’s shape.

Shouldn’t be an issue to control in the adaptive environment. Hard to say without a data set though.

Thanks @jacob.small This is the result. It looks great

A follow up question, is there any way to create generate model/kind of sweep from those adaptive family?

1 Like

Great work!

In the UI form by loft will get you what you are after. Not sure if there is a node for that though so you may have to resort to custom scripting or building your own zero touch node.