How to get corridor solid volume?

I got solids from corridor, but I cannot get the volume.

Object.Geometry node
Between 2 the nodes

thanks. seems some solids have problem, my dynamo freezes up.
any other method to extract its volume?

The Object.Geometry node, then Solid.Volume should work, but alternatively you can get the automatic volume property generated during solid extraction using the property set nodes.

1 Like

Converting from one geometry system to another can be time consuming. Either let it take it’s time or look into pulling a property of the solid itself using the AutoCAD api.

Hi, here are some examples:

Pipe Networks-3C.dwg (2.9 MB)

2 Likes

thank you so much! where does the get_volume() comes from? is it a dynamo design script or api?
does it have get surface also?

1 Like

Get the object as input for Python code node and write OUT = dir(input). This way you can get methods or properties from api. More here https://youtu.be/6NUu4sRMkTU?si=yjCD1Z-4qhdd1qF0

1 Like