Hi all
I would like to calculate the volume of these STRUCTURAL FOUNDATION by specific level (from GL±0, Kp+4500 to GL-1000, Kp+3500). Also I need to know how many piles and the lenght intersected by the desired levelling range.
May I ask is there any method or script that can be used? if the approach is possible, I don’t know use dynamo yet and how to form the script about the part of geometry intersection for volume. Can anyone help? Thank You in advance.
PS. This will be use in a bigger area 2000mx 2000m but for convenience I will a upload a portion of the file.
Jerico
Hi Jerico,
Please take the time to read How to get help on the Dynamo forums
I would start by trying things out on a much smaller dummy model, not a cut down project model as the file you uploaded has a CAD import which probably should not be in the file
I would also would work through the Dynamo Primer to get an understanding of Dynamo so you can apply any suggested solutions or even create your own
As to finding out if you can do what you want, you have asked for several solutions:
- Select all elements intersecting a zone
- Get the volume of those elements by intersection with the zone
- The number of piles intersecting the zone
- The length of the intersecting piles (in the zone)
Let’s start by collecting all Structural Foundations
Start by doing some clean up - the elements that do not have a blue overlay from the Dynamo geometry have not been converted
Once there is clean geometry you can use bounding boxes and intersections of geometry to get the information you are after
Hi Jerico,
(I’ve copied my answer here from the post which you previously asked this on as I see that you’ve rightly made it into a new post)
As mentioned above, it is also best to show that you have made an attempt at the script first and post the work in progress when you get stuck.
Nevertheless, to help on the first task, you should first get all the geometry into dynamo and join it all together as one solid:
Then you can create volumes above and below the area you want to calculate which will be used as cutting volumes. There are various ways to do this. I used a filled region drawn on the ground level plan. Note that the lines will match the elevation height of the plan on which you’ve drawn them.:
Lastly, you would use the volumes to cut away the irrelevant geometry and calculate the volume:
I have annotated each step within the attached dynamo graph (version .2.19.3 was used). I hope this provides insight to help you on your journey to learn dynamo scripting:
Calculate Volume of Geometry within Height Range.dyn (100.4 KB)
1 Like
Thank you very much @Andy_Grout. It works. this really improved my understanding in Dynamo.