- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Looking for a lisp that searches through all layers in a drawing and freezes them based on a user provided term. For example, the drawings I work with show a lot of topography lines that I don't need for my purposes but searching and freezing all of them one by one is time consuming. The pertaining layers (out of hundreds) in one drawing could be:
-N-TOPO-MNR
-N-TOPO-MJR
-S-Topogr-cl
-W-topogr-cl
-Main-topog-contr
-E-topog-ctrlne
As you can see the layers are all named differently and since I work with different companies doing different drawings the layers will never be the same name drawing to drawing. I need it to be sort of like the "find" command I'd like to type in the command name and then (in this case) just give it the term "topo" (caps wouldn't matter) and it would go and find every layer that directly contains "topo" or has "topo" as part of the layer name and then freeze it.
As a further improvement, I'd like to ideally have a catalog of terms to use. Like be able to permanently add terms like "topo", "water", etc... within the code where it would go through said process with each term but also still allows the user to type in new terms as needed. If new terms are found to be common I would simply add them to the catalog list within the code.
Solved! Go to Solution.