Community
Civil 3D Customization
Welcome to Autodesk’s AutoCAD Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D Customization topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I edit the properties of AeccPipe through COM API

7 REPLIES 7
Reply
Message 1 of 8
murali.pandey
623 Views, 7 Replies

How can I edit the properties of AeccPipe through COM API

Hi

 

can anybody tell me how can I set the property(material,name..etc) of AeccPipe/Structure through DotNet

 

Thanks

Murali

7 REPLIES 7
Message 2 of 8
christopher
in reply to: murali.pandey

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.

Message 3 of 8

And here is another post in IM DevBlog - 

 

http://adndevblog.typepad.com/infrastructure/2012/09/how-to-set-pipe-network-parts-data-fields-partd...

 

 

Does it help ?

 

Thanks,

 



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Message 4 of 8

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

 

Message 5 of 8
murali.pandey
in reply to: christopher

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

Message 6 of 8

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. 

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 7 of 8

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

Message 8 of 8
christopher
in reply to: murali.pandey

One has to do the math to figure out the invert, Pipe.StartPoint.Z - (Pipe.InnerDiameterOrHeight / 2) or something like it. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report