Hi
can anybody tell me how can I set the property(material,name..etc) of AeccPipe/Structure through DotNet
Thanks
Murali
It should be similar to this method for changing mannings value: http://blog.civil3dreminders.com/2009/09/change-manning.html
It's also listed in the Developer's Guide how to change some of the values for a pipe and structure.
And here is another post in IM DevBlog -
Does it help ?
Thanks,
Thanks Partha for ur quick reply..
What I m trying to do is to edit the part property (say Material) .
But I m not able to do that bcoz got an exception saying this property is READ-ONLY.
In the same manner I m also not able to change the Geometrical properties (all r read only).
kindly tell me how can I do that.(for Autocad Civil 2012)
Thanks
Murali
Thanks christopher..
But issue in editing in geometrical properties(say IL ,Diameter..etc ) and part properties (say material). I followed the steps as developer's guide but in code these properties existed as READ-ONLY
Thanks
Murali
If you want to change the material and pipe size it might be easier to swap the part out with a new one. Or note what the part is attached to or what is attached to it, delete it, recreate it with the correct material and size, and then attach the appropriate parts back on to it.
In addition to above questions
Where I can find the Start Invert Lavel(Start IL) and End invert Level(End IL) properties of a Pipe (.Net/Com API)
Thanks
Murali
One has to do the math to figure out the invert, Pipe.StartPoint.Z - (Pipe.InnerDiameterOrHeight / 2) or something like it.