Jump to content
Developer Wiki and Function Reference Links ×

Layer name wildcard


calsan

Recommended Posts

I'm trying to find objects in layers whose name contains (for example) "250"

Why does this work for classes:

SelectObj(C='*250*');

but wildcard search doesn't work for layers:

SelectObj(L='*250*');

:confused:

Probably because classes and layers are in another internal list. Layers have their own internal list, classes and all other objects are in the 'main' object list.

What you could do is first find all layers, filter out those that doesn't fit your search criteria, then create your search criteria based on that and then do the selection. I know this will be more work...

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...