Nurbscurve to curve

Heho, i try to align familyinstances along a nurbscurve…but my solution needs a normal curve to work.
Is there a work around?


Solution from http://dynamobim.org/forums/topic/setting-rotation-along-a-path/
nurbscurve_to_curve.dyn (13.0 KB)
01_Alignment.xls (67.5 KB)
I use the data and the node “01_SplineFromExcel” from the bridge package.

You don’t need that node at all. It extracts a curve from a revit curve element.

well…it doesn’t work


and the errors had something to do with the spline, because with a normal curve it works

Can you post a screen grab of their exact error dialogues?

Hmmm your code seems to work on a NurbsCurve when replicated.
Perhaps try rebuilding the curve after the 01 Node?

What geometry working range is Dynamo set to? (This was the only error I had and it was on the Curve.PointAtSegementLength node. (Large=OK)

The change of the working range in Dynamo doesn’t solve the problem…mh
Any other idea’s?

Try connecting the “Spline” output to the “cr” input of the CBN. Points don’t have a length per se :wink:


there is a connection between spline and the codblock

Indeed. My bad, it seems I misread the wires.

Did you try deconstructing the Nurbs.Curve and rebuilding it before feeding it to your code block?

Hi @Fiesta

I have rebuild your graph and modified a bit. Your good to go now. Here is the script nurbscurve_to_curve (For Fiesta).dyn (58.1 KB)

2 Likes

Thx u Kulkul, this works.

Hi everyone !

I try your solution but it doesn’t work with in my case.

I have a roof with particular aspect :’) I need to get a spline of the intersection of this roof and the surface.

As you can see, i have many nurbscurve, i try to join with your method but dynamo always say it’s not possible to do that.

One year after, here i am :slight_smile: