Line section name

Hello, I’m a beginner with Dynamo and I would like to understand how Dynamo can help me change the section line names. In my drawing, I have more than one alignment, so how can I select each one separately?

Hi @marianiYA982,

Generally speaking, you can use the CivilObject.SetName node to set the name of any Civil 3D object, including sample lines. Sounds like most of the effort required is to get a list of the specific sample lines that you want to edit. Can you give a little more context about your setup and goal?

Hi Zachri,
Thank you very much for your quick reply.

I usually use Civil 3D for designing pipe networks. In this project, I have three alignments, and for each one, I have inserted several line sections (and pipes).

Now, I want to change the line section names by adding a prefix before the number. Similarly, I want to rename and renumber the pipes based on their progressive mileage.

I think is something very easy for experts like you.

Thanks again for your support.

Take a look at this example. There are a lot of similarities with what you’re trying to accomplish, so you should be able to adapt for your needs.