Message 1 of 4

Not applicable
05-21-2015
02:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
I'm new to writing code and can't seem to get this one figured out. I want to activate the command, be prompted for a word, then have every layer with that word turn on. (such as "contour" then all of my countour layers turn on.)
Here's the code and thanks again in advance for any help you can give me.
Jason
(DEFUN C:RF ()
(setq wild(getstring "\nEnter part of layer name: ")) ;Gets the layer name
(command "-layer" "_on" (concatenate 'string "*" wild "*"))
(command "-layer" "_thaw" (concatenate 'string "*" wild "*"))
(command "regen")
(princ)
)
Solved! Go to Solution.