Is there a theory for filtering elements that do not have levels?
My method is to enter all the levels that the document has into the filter and set inverted to true to select elements that do not have a level, but I would like to know if there is a better way.
thank you for your reply.
I tried this approach, but did not adopt it because I judged that the calculation cost might be too high for querying all levels of elements in the first place. Sometimes I have tens of thousands of elements to query and would like to consider a less costly method.
Hmmm, I can’t get through with Empty.
What version are you using? I’m on v1.31, but if it passes with something newer than that, I’ll wait for the stable version of it.
thanks,
Yes, I considered that approach, but did not adopt it because I thought it was a bit aggressive.
That said, there are still problems with my method, as I mentioned at the beginning.
If @Jessesn’s method is appropriate, I feel that I need to devise a way to reduce the computational cost a bit more at the point where all the elements are obtained.
Considering that it takes about 120ms for about 7000 elements, it could take several seconds when the number increases, and I would like to avoid that.
It’s an attempt to get an element without a level with a parameter other than the level parameter. Interesting.
So this way we get a Revit Component that is not primarily a System Family. And most of them don’t have Levels. But there are some Revit Components that have some Levels, so there is an issue of how this needs to be filtered out, but it is very interesting.
Thanks!