- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to complete a simple 3 layer creation lisp routine (Layer A B C) that will create the layers, set the colors and then freeze the other two layers. If I Type A, B and C Freeze. If I type B, A and C Freeze, etc. Problem is when the layers are already created and two layers are froze, I'm struggling with the lisp routine to check to see if layers are froze and if so, thaw accordingly. I haven't written any code of many years and this should be simple, but it's kicking my butt. Below is the basic make layer portion for A. B and C are similar and easy to accomplish. It's adding in the thawing (if fronzen), setting layer, and freezing other layers that is my problem.
(DEFUN C:A()
(command "-layer" "m" "A" "C" "135" "" "")
(command "-layer" "m" "B" "C" "150" "" "")
(command "-layer" "m" "C" "C" "230" "" "")
(command "-layer" "s" "A" "F" "B,C" "")
(PRIN1)
)
Any help would be appreciated.
Solved! Go to Solution.