Element Geometry Topography (1348 elements)

Hello, a pleasure to everyone, I am somewhat new to using Grasshopper Rhino.inside for Revit, I have watched a tutorial on YouTube from the BIMGeek channel, which presents how to run a scrypt in Grasshopper to project onto the topography and change the location. of the vegetation, ensuring that each plant element intersects with the topography. This is the link to the video tutorial https://www.youtube.com/watch?v=J5tBJeXMO1s
I have followed the same steps to create the scrypt in grasshopper, although in my case I have 32 thousand vegetation elements and 1348 topographies, in the example of the video tutorial it only uses one topography element, the “Element Geometry” component apparently only allows choosing an element and I have to create a for loop with python or use a repeated data component, although perhaps there is another solution, I have been trying and since I am a new user I cannot find the solution, I would appreciate if some experienced user could guide me.

Observation: when I insert the “List of Values” component to be able to select (Mesh) as it appears in the video tutorial, the (Mesh) option does not appear.

Note: The survey elements are extracted from a general survey that was modified with construction platforms in the (Mass and Site) tab for the creation of infiltration trenches, and leveling between trenches, to calculate the cut and fill the modification of the topography, that’s why I have 1348 topographic elements.

Proyectar Plantas a Topografia.gh (19.2 KB)




Hi Gershon, I changed the Category of the Forum post to Rhino.Inside.Revit, most grasshopper users will not have Revit which is required to use the plugin.

I’ll take a look at your file here shortly.

This is essentially a grasshopper question, but would require that you remove the Rhino.Inside.Revit elements to ask the general grasshopper community.

Here I created 100 random topographies and 1100 trees that need to be set to the right location.

re-Topo-placements.gh (16.2 KB)

The idea on multiple geometries is to match the trees. If you are unfamiliar with working with data trees I recommend this video series.

1 Like

Hello bro, thank you, for the help I have seen that you generate topographies and plants randomly, I tried to try although I have not had much success, I will attach the .rvt files of the project.

Zona B-EH-S2-1
Here are the modified topographies (part 1) to calculate cut and fill
Optionally you can put a filter by parameters to the elements of the topography category. All topographies modified to perform the cut and fill calculation have a parameter “Name” which has a text type value: “G_Topo R/C”
Vegetation is also found

Zona B-EH-S2-2
Here are the modified topographies (part 2) to calculate cut and fill
Optionally you can put a filter by parameters to the elements of the topography category. All topographies modified to perform the cut and fill calculation have a parameter “Name” which has a text type value: “G_Topo R/C”

Note: It was decided to divide it into two .rvt files, since the software was beginning to have slowness and information processing complications. The File “Zona B-EH-S2-2” is inside the “Zona B-EH-S2-1” file in the form of (Link-Link-Link)

The files exceed 20MB, here is a link to google drive to download the files “Zona B-EH-S2-2” y “Zona B-EH-S2-1”:
https://drive.google.com/drive/folders/1GzRV5ARCfPSsbLqOD6RT3WOMwH1OGCp6?usp=sharing

You can work on the Zona B-EH-S2-1 file by linking the Zona B-EH-S2-2 file and in grasshopper we can call topographic elements from linked files

16 minutes to move 32,000 + trees :slight_smile:

Re_Replanting.gh (16.0 KB)

Re_Replanting-WithLinkedFileToo.gh (19.0 KB)

1 Like

Proyectar Plantas a Topografia.gh (24.3 KB)

I’m currently testing this scrypt after two days of headache, it’s been processing for 20 minutes now and it still doesn’t finish processing.

Jalphy McNeel, you are a genius at Grasshopper Rhino Inside for Revit, I would like to contact you, I am from Peru, you can add me on FB or Twitter, I frequently use that social network, I am in the world of cryptocurrencies and BIM, I leave you my Facebook so that Let’s be in touch, and by the way I would like to compensate you for the service offered, you are a genius.

FB: Gershon Maldonado A

Depending on your computer yours may take longer, if you notice with the linked file added it was a solid 20 mins of processing.

I’m always here to help Gershon, feel free to ask questions and if you get a chance pay it forward by helping others.

1 Like

I see you have the components Filter By Type (R6) and Clean Parallel (R6)

In my case, the scrypt that you sent appears to be in a version of Elefront 1.0. When I opened the file, that notification appeared. I have Elefront512 and it does not recognize those components mentioned.
I have to create the component from my user interface and what happens is the following:

As you can see, the Filter By Type and Clean Parallel components do not have the (R6) and also in the Filter By Type component it has two output data Excluded Geometry and Included Geometry, however in the component you gave me it only has Geometry.

How does the additional (R6) work in each component, how could I create that additional (R6) and why in my Filter by Type component I have Exclude Geometry and Geometry included in your component seems to have only Geometry?

Easiest way to remedy this is to go to Package Manager and download Elefront 4.3, Elefront 5.x is coming a long great but I haven’t moved beyond 4.3 yet & i’m not familiar with 5.x features.

Having both installed at the same time can be confusing due to the similar names and the need to only use 5.x or 4.3 in a particular function.

1 Like

It is correct, I had the package with version 5 and I should have used the Elefront package with version 4, it solved the component problem, although now I have a problem in the Clean parallel component, analyzing in the Filter By Type component it exports the list of data tree, although when entering the Clean Parallel component this data is lost, I have observed that in this command it selects to delete empty branches, although in my case I get a message of “No data Was Collected”

Filter By Type (Panel)

Clean Parallel (Panel)

Clean Parallel (Retain Empty) (Panel)

Yes, those branches are empty. Check input geometries (G) to see if you are getting what is expected (Mesh)

Element Geometry (Panel)

Value List (Mesh) (Panel)

Filter By Type (Panel)

Clean Parallel (Panel)

You have empty branches coming out of the Element Geometry component, Check your elements inputs (E)

i see

or you can connect the manually selected topography to the Element Geometry input…

1 Like

I have connected directly as you indicated, it seems that it is processing 1 hour and 20 minutes, I have an Asus Rog Strix g713QR laptop with Ryzen 9 5000 series - RTX 3070 - RAM 16GB

You should ensure everything is working with a limited data set, then go for the whole


It’s just finishing and I have one more error.


that happens to me in the last component

Why did you unflatten?

Here is a subset that runs in 183 ms


Re_Replanting-WithLinkedFileToo-SmallSubSet.gh (18.3 KB)

1 Like

Japhy Good Project, thanks, contact me plis, add friends my facebook is: Gershon Maldonado A

Re_Replanting_Final_Not_LinkProject.gh (38.5 KB)