Message 1 of 10
Change your current layer lisp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to create a lisp where when i bring in a block on a certain layer it will change my layer after I insert the block to the layer i want to draw my lines on. For example when i bring in my receptical I have it come in on layer E-Power Devices, after i place this device i want my layer to change to E-Power Circuiting. This is the code i was working with from an old lisp that we had in the office.
;;Layers
; (setq LAY (substr LAY 1 6))
(cond
((= LAY "E-Power Devices") (setvar "CLAYER" (car (flx "E-Power Circuiting"))))
)
)
I have all my layers that pull from a DFS file so when i type in the command MAKE it will bring in all my files. Any suggets or Lisp on how to have my layer change after i insert a block?
;;Layers
; (setq LAY (substr LAY 1 6))
(cond
((= LAY "E-Power Devices") (setvar "CLAYER" (car (flx "E-Power Circuiting"))))
)
)
I have all my layers that pull from a DFS file so when i type in the command MAKE it will bring in all my files. Any suggets or Lisp on how to have my layer change after i insert a block?