Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need help for this code . How can I change it to add "Exit -" as a prefix to layer names and not suffix.
(defun table (s / d r) ; Michael Puckett (while (setq d (tblnext s (null d))) (setq r (cons (cdr (assoc 2 d)) r)) ) ) (defun c:dsa (/ add lst xlay) (setq lst (cdr (reverse (table "layer")))) (setq add "Exist") (foreach x lst (setq xlay (strcat " - " add)) (command "_rename" "layer" x xlay) ) ; foreach (princ) ) ; defun
Thanks
Solved! Go to Solution.