Create Alignment from polyline

Hi Folks, I’m using civil3d 2026 and civil3dtoolkit nodes in civil3d 2024 are not available I’m trying to make dynamo graph to convert 2d polylines into alignment and then to surface profile view the first stage is going well up to surface profile creation but when it comes to profile view and insertion points, I have some error that I couldn’t figure out

Alignments from Polylines.dyn (45.4 KB)

Hola amigo @mohamedelkady41 buenas.

you need also Arkance System Package, there is a direct Node in C3DToolkit named AlignmentExtensions.CreateAligmentByPolyline, that one creates the alignemts from polylines, if your polylines has OD records you can get names also and name the alignments, i’m still in 2023, not sure if the nodes still exist in 2026!

by the way the nodes in your image are not readables!!

hello my friend, thanks for your response, I’m aware of AlignmentExtensions.CreateAligmentByPolyline but its not available in civil3d 2026 and I wen around it by using another node from civil dynamo package, but my problem is the profile view creation the coordinates of insertion point comes to null

Hi @mohamedelkady41
Your Range node is setting a end value lower than your start value (because of the BottomY definition on your codeblock), which cast a null output from that node. That is why you get a null value also on point XY.

Ty to switch end and start inputs or maybe change the block definition

Hi @JaLo thanks for your response, I followed your suggestion, and it worked well, but still have some error it will ignore one alignment profile if I have 10 polylines it will make 10 alignments in sequence but will make 9 profiles

Alignments from Polylines.dyn (45.4 KB)

I tested the dyn file and it provides (N) alignments, (N) profiles and (N-1) profile views.
Again it is because of the the definition of the range node. The difference between the start-end and the given step is too big to get N locations to insert the profile view. Either the step is too big nor the range is too small for the step (e.g. range is 1-3 and step is 1 you get 3 locations but you might have 4 polylines).

Test your dyn without the distance and total height definition, inserting all profiles at point (0,0,0) and you should get you N profile views