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

Pipe and Structure volumes is incorrect via MASSPROP

Message 1 of 1
128 Views, 0 Replies

Pipe and Structure volumes is incorrect via MASSPROP

Using the Civil3D .NET API, I have been able to extract the volumes associated with Solid3dBody objects by first accessing a pipe/structure/solid, extracting the Solid3dBody and then extracting the "MassProperties.Volume" field. My goal is to find the amount of material that these objects are constructed with.

The problem is that this MASSPROP volume extracts the entire volume of the space that the object takes up in 3D, regardless of its inner dimensions. For example, the volume of a pipe are returned as if the pipe was a solid cylinder, and not a hollow cylinder. The database for all these pipes and structures do contain the correct information on wall thicknesses, floor thicknesses, etc. so the task becomes a simple calculation for simple objects, but when an object (structure) becomes more complex, there is no way to accurately identify the material volume. Is there a way to automatically extract what I am looking for?


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

Post to forums  

Rail Community


Autodesk Design & Make Report