Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In the following lisp routine needed an if() insert to code, in order to abort i ss Collection is empty (If Layername doesn't represent any existant layer(s))
(defun C:LayerObjSendToFront (/)
(setq LayName (getstring "Layername : "))
(setq ss (ssget "X" (list ( cons 8 LayName))))
(command "draworder" ss "" "front")
(princ)
)
Solved! Go to Solution.