Set name for civil 3d pipes

I’m trying to rename pipes as shown below, I don’t know whats wrong here

What is the warning on CivilObject.SetName?

Warning: CivilObject.SetName operation failed.
The name may exist.

This means that for at least one of the pipes the name cannot be set because it is already set to the same name. This could happen if you’ve already run the graph once to change the names, and then re-run the graph.

So, what is the best to be done to set all pipes names ?

The warning is saying that you’ve already changed all of the pipe names. If you want to change the pipe names again, you need to create a new list of different strings for the names.

1 Like

Here’s an example


Many Thanks, That’s a pretty clear explanation. It works now