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: 

PRESSURE PIPES API

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
Mikexlt
1654 Views, 3 Replies

PRESSURE PIPES API

First of all i'm not a hardcore programmer. I have developed quite a large set of  VBA functions for designing pressure networks inside of C3d.  I would like to convert some of these functions to VB.Net to allow design / anaylsis  of  pressurepipe objects.  I need some code examples or snippets to allow me to get at the pipe end  points  and the fittings and appurtenance insertion  points.  I think i can take if from there. 

 

Thanks 

Mike Carson

3 REPLIES 3
Message 2 of 4

You can use the AeccPipe in vb.NET and not convert the pipes to the Pipe object. Have you checked out the sample program? http://help.autodesk.com/view/CIV3D/2015/ENU/?guid=GUID-7F770E7E-DE22-4B0C-A4CF-8D06F8860B45

Civil Reminders
http://blog.civil3dreminders.com/
http://www.CivilReminders.com/
Alumni
Message 3 of 4
tyronebk
in reply to: Mikexlt

It's a little unclear exactly what you are asking for. Chris pointed you to the gravity pipe com API. If you are looking to simply port your commands to .net, then that is the easiest way to proceed.

 

Now, if you want to modify actual pressure pipes, as far as I'm aware, you will need to work with managed .net and reference in the DLL (C:\Program Files\Autodesk\AutoCAD 2015\C3D\AeccPressurePipesMgd.dll). Apparently there is no real documentation for pressure pipes yet, and the exposed methods and properties are limited, so there will be a lot of playing around.

 

Once the DLL is referenced, the objects should be available under the Autodesk.Civil.DatabaseServices namespace:

Autodesk.Civil.DatabaseServices.PressureAppurtenance
Autodesk.Civil.DatabaseServices.PressureFitting
Autodesk.Civil.DatabaseServices.PressurePipe
Autodesk.Civil.DatabaseServices.PressurePipeNetwork

Message 4 of 4
Mikexlt
in reply to: tyronebk

Thanks I have got a handle (sort of ) on this now. I was able to get what I needed using the suggestions stated above. I added the AeccPressurePipesMgd.dll

and I am able to  start updating the functions.

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

Post to forums  

Rail Community


Autodesk Design & Make Report