How can get all the point on the edge of the floor?

How can get all the point on the edge of the floor?

Anonymous
Not applicable
1,094 Views
1 Reply
Message 1 of 2

How can get all the point on the edge of the floor?

Anonymous
Not applicable

As my title, I want to count all point on the edge of the floor but I don't have any ideal for do it. Does anyone has a solution?

My ideal something like this:

int i = 0;

FilteredElementCollector docCollector1 = new FilteredElementCollector(doc).OfClass(typeof(Point));

foreach(Point point in docCollector1)

{

  i++;

}

TaskDialog.Show("Revit","Have total {0} point on the edge of the floor ", i);

0 Likes
1,095 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

You can add a geometric location filter, e.g., using a 

 

BoundingBoxIntersectsFilter

 

http://www.revitapidocs.com/2017/1fbe1cff-ed94-4815-564b-05fd9e8f61fe.htm

 

Here are some examples:

 

http://thebuildingcoder.typepad.com/blog/2013/03/filter-for-family-instances-in-a-room.html

 

http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.9

 

Cheers,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder