From the course: Revit: Creating C# Plugins

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Intersecting geometry

Intersecting geometry

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

Intersecting geometry

- [Instructor] We now know how to extract geometry from a Revit element, so let's look at one way that we can use geometry, and that is by calculating intersections. We can do this by using the element intersect solid filter. This is a slow filter that takes a solid as the parameter. This can be useful for finding clashes in a model. So using this filter, let's create a new command, that allows us to select a column family, to check if it intersects with a roof. In here, it let's the user select the object, and then retrieves the element from that object, and then the geometry from that element. I then created a solid variable, named gSolid which equals null. We'll use this to assign a solitary, that we extract from the column family. I've kept it outside of the for each loop, because we'll need to use it later on, with the collector that I've created down below. So, as we'll be selecting a column family, we need to retrieve the solid, which makes up the family column, by getting the…

Contents