In the 3D model, we can see that the pipe and structure objects are represent as surface, so I am trying to retrieve the geometry data of the pipe and structure object, but I can't find the interface from the .net API which can help me to do this. I found that the class Pipe and class Structure are inherit from Autodesk.Civil.PipeNetwrok.DatabaseServices.Part, Part have a member "Solid3d", it look this interface is the one I am looking for. But still can not find the useful interface from this "Solid3d". Any idea is appreciated, thank you!
@Civil 3D 2012
Hi,
I'm not sure what you mean by 'cannot find the useful interface for this Solid3d'. This is a AutoCAD entity, so you can extract any information from it like any other AutoCAD solid.
Both Pipe and Structure derive from Part, and the Solid3dBody property is accessible on this level. For instance, I tried the following on a previous code...
>>>
Part part = trans.GetObject(pipeId, OpenMode.ForRead) as Part;
double partVolume = part.Solid3dBody.MassProperties.Volume;
<<<
Regards,
Augusto Goncalves
Autodesk Developer Network
Hi Augusto,
Thanks for your suggestion! But sorry I was not describe it clear, the "geometry data" means the geometry structure of the object, I want to get all sub elements compose the pipe or structure object, e.g. the lines or the triangles of the pipe network.
Best regards
Jounny
Hi Jounny,
Sorry I still not sure what you need....please keep in mind that a pipe or structure is a 3d geometry, so we can, for instance, get the Solid3dBody and explode it to get less complex geometry. If you mean the geometry we see on top view, this is vewport dependent.
Maybe you can try attach an image pointing the information you need.
Regards,
Augusto Goncalves
Autodesk Developer Network