Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
(defun c:c1 ( / ss blk insPt ptList count)
(setq ss (ssget '((0 . "INSERT"))))
(if ss
(progn
(setq ptList '() count 1)
(repeat (sslength ss)
(setq blk (ssname ss 0))
(setq insPt (cdr (assoc 10 (entget blk))))
(setq ptList (cons insPt ptList))
(command "_.TEXT" "_J" "MC" insPt 1000.0 0 (itoa count))
(setq count (1+ count))
(ssdel blk ss)
)
(if ptList
(progn
(setq ptList (reverse ptList))
(command "_.PLINE")
(foreach pt ptList
(command pt)
)
(command "")
)
(princ "\nNo insertion points found.")
)
)
(princ "\nNo blocks selected.")
)
(princ)
)
i attached dwg file what i need this
Solved! Go to Solution.