Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Working on a lisp to copy objects layer, add a suffix to existing layer name, changes the colour of the new layer & moves selected object to new layer. Found plenty of lisps found that do 2 of the tasks but not 3.
What I've cobbled together works as intended but I don't know how to bring the linetype across to the new layer.
(defun c:AS (/ esel ent DLname)
(while (setq esel (entsel "\nPick object to put on its ASCON Layer: "))
(setq
ent (car esel)
DLname (strcat (cdr (assoc 8 (entget ent))) "_ASCON")
)
(command
"_.layer" "_make" DLname "_color" "_truecolor" "255,0,0" "" "_ltype" "" "" ""
"_.chprop" ent "" "_layer" DLname ""
)
)
(princ)
)
Any help would be much appreciated.
Solved! Go to Solution.