Sometimes you want additional information included in a pipe or structure object. Maybe the velocity of the material flowing in the pipe or the quantity of material flowing in the pipe per unit of time. There is a way using programming to add information to a pipe or structure that will show up in labels. Here’s a shot of a structure the way it’s provided.
And here’s a shot showing the custom data added to the structure.
And here’s a screen shot of the label options in the Text Component Editor.
So how do you do this? You add a Pipe Network Catalog Definition to the drawing. The catalog definition is then available to all of the structures or pipes within in the drawing. A code examples are available in Civil 3D Developer’s help or in the Civil 3D 2009 VBA Customization vBook. The name can be anything that you want, it doesn’t have to be Custom Part Data. One could couple this will reactors and store the velocity or Q in the pipe, when the pipe changes the data held in the pipe would also change. I’d do an example, but I haven’t figured out reactors yet.