Message 1 of 5

Not applicable
12-05-2018
08:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Dear Helpers,
I have created one lisp code to create and convert the selected elements to the new layers. It's working for all excepting Blocks. Can you please check the below code and correct if I am wroing at any location of the code.
(defun C:LDT() (setq vij (ssget)) (setq lay (tblsearch "layer" "TP-LHS-DRAIN")) (if (= lay nil) (progn (command "layer" "n" "TP-LHS-DRAIN" "c" "5" "TP-LHS-DRAIN" ""))) (command "change" vij "" "P" "la" "TP-LHS-DRAIN" ""))
Solved! Go to Solution.