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

check if element is in a group

$
0
0

I have seen the posts on finding the elements in a model group.

I have also noticed that the filtered element collectors will find elements that are inside groups.  (e.g. filter for all walls, and I get walls that are inside groups).

 

So my question is:

Is there an efficient way to find out if an element is in a model group?

 

In a model with lots of groups, I am guessing that scanning through all the elements of all groups to find a match would be inefficient.

 

The related question to this is - can I find groups 'geographically'?  I.e. within a rectangular extent?  I am hoping there is a way short of finding all the elements in the group and checking where they are...

 

For clarity, here is what I want to be able to do:

 

Look within an area outline (that's a whole other issue, I know).

Within this area, find a particular type of element (e.g. by family name, etc), which I expect to be in a group.

Make sure the element is in a group and check the name of the group.

 

Thanks for your help in advance.

Abba


Viewing all articles
Browse latest Browse all 66693

Trending Articles



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