Excavate tool in RiR

Hello,

I’m currently working on a site model and would like to keep as much of the workflow as possible inside the Grasshopper pipeline. I know I can use Revit’s native excavation tool and then reimport the modified geometry, but I’d like to avoid that step if possible.

Thanks!

Hello @Parker_Gillespie1,

Do you need native RIR Excavation Component ?

You might wanna look into the following method

Hi @MSAwan ,

That is was I was asking for. I don’t have any experience with RevitAPI or any coding. I can looking into what it would take to add this as a c# component myself if needed.

Thanks for your reply!

Hi @Parker_Gillespie1,

Will python code work? I can quickly script the python code.

Please find the attached script

ExcavateToposolid.gh (9.0 KB)

@MSAwan That did exactly what I hoped it would do. Thank you for your help and time!

That’s fantastic. I think RiR could include a component like that in future versions. Right now, I’m using RiR 8.35.26251.13001, but that option doesn’t exist (as far as I can tell).

@vin.iab no it doesn’t. Do you use this option frequently?

Yes, frequently; in the AEC sector, I often have to deal with manipulating topography, which requires cuts for basements or sub-grade levels. However, when using your script, I noticed that it isn’t possible to revert to the previous toposolid (with a standard toposolid, you can manually unlink it from Grasshopper and then manually reverse the excavation within Revit)—and it seems that with toposolid subdivisions, this isn’t possible anyway. Is there a workaround for this?

We already have developed this component for some of the community members. we have option to create and remove the Excavations from the same source component.

for topo solid subdivisions you can use the following component

Excellent work! How can I get this component too, @MSAwan?
Also, regarding the subdivision, do I need to redo it using Grasshopper?

yes If you are using Revit 2026 then you need to cut the Subdivision with Main Topo solid.

Hi @Parker_Gillespie1,

We have added ‘Excavate Toposolid’ component in v1.37, you can download and try it from the RiR Options dialog. It requires Revit 2025 or above.

Now is possible to create your own ‘Building Pad’ cluster using it.

The content of the cluster is like this.


RiR-BuildingPad.gh (21.7 KB)