Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
this routine can copy selected objects to pre defined layer in a same place
(defun c:ccl ( / oldsnap ss x obj) (setq oldsnap (getvar "osmode")) (setvar "osmode" 167) (princ "\n\nSelect Objects for BACKGROUND layer.") (setq ss (ssget)) (repeat (setq x (sslength ss)) (setq obj (ssname ss (setq x (- x 1)))) (setq converted (ssadd)) (command "copy" obj "" "0,0" "0,0") (command "chprop" "L" "" "layer" "0-BACKGROUND" "") (ssadd (entlast) converted) (command "select" converted "") (sssetfirst nil converted) ) (setvar "osmode" oldsnap) (princ) )
I need to select all copied objects in this layer but sssetfirst select only last object and I need ALL of it
Can somebody help me?
Solved! Go to Solution.