Quantcast
Channel: All Revit API Forum posts
Viewing all articles
Browse latest Browse all 66855

Re: select elements witch cut by the view

$
0
0

You can use a BoundingBoxIntersectsFilter.

 

BoundingBoxIntersectsFilter CutPlaneFilter = new BoundingBoxIntersectsFilter(_outline);

List<Element>  ElemsInCutPlane =

   new FilteredElementCollector(doc, ActiveView.Id)

      .WhereElementIsNotElementType()

      .WherePasses(CutPlaneFilter)

      .ToList<Element>();

 

 

where _outline is made from the points of a region in the cutplane , for instance the Crop Region


Viewing all articles
Browse latest Browse all 66855

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>