Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey Guys, whats up?
I am developing this code but there is some problem, could anyone help me? Please
(defun c:testea () (setq pon (getpoint)) (setq sel (ssget "x" '((0 . "INSERT") (8 . "ELE-BLK-PONTOS")))) (setq count 0 count2 0 hm (sslength sel) list2 '("AC" "AQ" "CF" "CH" "FE" "FP" "LL" "LM" "PM" "SN" "SPA" "TE" "TL" "TP") ) (while (< count hm) (if (equal (assoc 1 (entget (entnext (ssname sel count)))) '((progn (while (< count2 13) (if (equal (assoc 1 (entget (entnext (ssname sel count)))) '(strcat "1 ." (nth count2 list2)))(progn (command "_insert" (strcat "C:/PJ/Legenda/" (nth count list2) "(legenda)" pon "1" "" "0")) (setq count2 (1+ count2)))))))) )))
Thanks
Solved! Go to Solution.