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
Solved! Go to Solution.
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
Solved! Go to Solution.
Solved by tyronebk. Go to Solution.
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
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
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
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
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.
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.