ScanCriteria is overkill unless you need to filter by spatial criteria.
The only filtering mechanism provided by ModelElementsCollection is to select graphical elements, control elements, or both.
Iterating all the elements in a model should be quite fast as all of them are already loaded into memory.
You can filter according to your own criteria while iterating the collection. It would be no more efficient for us to do the filtering for you.
The only filtering mechanism provided by ModelElementsCollection is to select graphical elements, control elements, or both.
Iterating all the elements in a model should be quite fast as all of them are already loaded into memory.
You can filter according to your own criteria while iterating the collection. It would be no more efficient for us to do the filtering for you.