Create corridors for all alignments

Hi,
I can create a corridor for a single alignment but I’m struggling with creating corridors for all alignments. I am able to select all alignments, filter the design profiles but the Alignment.ProfileByName will only read the first design profile and read the rest as “null”. Is there a way around this step or am I approaching it in the wrong direction?

Thanks,
Pat.
06 - Corridors.dyn (43.6 KB)

Check level list

1 Like

Hi hosneyalaa,
Not sure what you mean by the level list. The Alignment.ProfileByName is only handling the first profile only.

Select all alignments and their profiles to create 3D text instead of one by one - Civil3D - Dynamo (dynamobim.com)

Maybe this can help?

1 Like

see this

Hi Patrick,
The code block list inserted before the Alignment.ProfileByName did it. Thanks very much.

Regards,
Pat.

1 Like

Glad to help you
Such a coincidence because yesterday I checked my old threads and saw this one, Happy to help you when I got help by @mzjensen with my issue :slight_smile:

1 Like