It should be possible to using "select by layer" in macros and/or "select entity by layer".
Currently you need to select entity/entities (using for example Predicate) , and the look up the layer it is assigned to, and if matching search name add to a selection list. This is time consuming.
For example using Predicate to select Triangles, then get the triangle layer by using GetEntityLayer.
Or is there a faster way to do this operation available?