How can I get a area from my corridor solids extracted ?
The Civil extract some parts as a “Body”, and I couldn’t find this property to get it in Dynamo.
This body elements shows when I extract a corridor and I don’t have volume, just a line into assembly.
Hmm, that is a tricky one. I don’t think it’s possible to get the surface area of an AutoCAD Body, either in Dynamo or not. You could explode them all down, but then you will probably get a mixed bag of Regions and Surfaces, so it’d be more tricky to handle all of the different potential object types.
One approach could be to use the LINEWORKSHRINKWRAP command to generate a polyline along the boundary of the bodies, but that would be a 2D area and not a true 3D surface area. That could add up to a significant difference with large areas.
What about ignoring the AutoCAD Bodies altogether and doing the computation directly with Dynamo Surfaces? You could create lines connecting the desired point/link codes and then create surfaces with Surface.ByRuledLoft. Something like this:
It depends what object you need to have in C3D, but besides what @shahid.shaikh_C3D suggested, what I usually do is create a solid with a really small depth using the Surface.Thicken node
I don’t know if this has been solved or not, I was experimenting with it and I think I found a way to do it using the bodies and without the corridor.
Sadly, there may be some inconsistency, because of the Point.PruneDuplicates node, so it is not final. Please feel free to give feedback.