You are on page 1of 1

(defun c:gdd() (command "undo" "be") (command "line" pause pause "") (setq fen(entlast) i 0 p1(cdr(assoc 10(entget fen)))

p2(cdr(assoc 11(entget fen))) lips(list p1 p2) litt(ssget "_F" lips) littlen(sslength litt) ) (repeat littlen (setq dtg (ssname litt i) p1g(cdr(assoc 10(entget dtg))) p2g(cdr(assoc 11(entget dtg))) giaodiem(inters p1 p2 p1g p2g ) i(1+ i) ) (command "insert" "theptron" giaodiem "" "" 90 "") ) (entdel fen) (command "undo" "e") )

You might also like