I’m trying to SelectObjectsByLayer – however, when there are duplicate layer names in different layers, this becomes an issue, as the SelectObjectsByLayer call fails.
The McNeel recommendation is to use the full path of all layer names, separated by two semi-colons…
So, if I had a layer “A” with sub-layer “B”, and I wanted to work with sub-layer “B”, I would have to use the layer name “A::B”
Thus, if layer “Z” also had a sub-layer “B”, a call to use the layer would not fail (as opposed to the failure if only the ambiguous name of “B” was used)
This works fine, until the following scenario occurred…
If I want to use layer “B::C” (The second stand-alone layer) a call that uses this layer (selectobjectsbylayer, for example) fails.
This is as a result of the same reason previously described.
The layer name “B::C” is ambiguous.
However, in this case, there is no means to identify layer “B::C” in any other fashion, in order to make it more unique, or less ambiguous.
The call returns a NULL value in the case of an ambiguous layer name being supplied.
(But in the case of the example cited, there is no way to avoid the ambiguity in order to identify the layer)
Please advise how this can be done.