Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi people!!!!
I´m trying write a code that insert a block in an each point of vertex, but all vertex has the same number (10) and the block just insert in the first point.
see my code:
(defun c:test ()
(setvar "osmode" 0)
(setq selecao_geral (ssget))
(setq s1 (ssget "_p" '((0 . "LWPOLYLINE") (8 . "F-SC-GREIDE"))))
(setq pline (cdr (assoc 10 (entget (ssname s1 0)))))
(command "_insert" "C:/Users/alexa/Desktop/Alexandre/12.LISP'S PARA AUTOCAD/BLOCOS/PIRULITO" pline "1" "1" "0" "XX")
(princ)
)
how can i insert blocks in all vertex?
Please!!!!
Solved! Go to Solution.