Message 1 of 14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hii Everyone
i want to insert a block along with UCS with the below AutoLISP.i don't know what are function to insert in this code. kindly help me.
i attached two dwg one is a sample drawing,2nd one is a block drawing.
(defun c:try()
(getvar "osmode")
(setvar "osmode" 0)
(setq a (ssget '((0 . "insert"))))
(setq slen (sslength a))
(setq i 0)
(setq scl (getreal "\nEnter the scale<none>:"))
(repeat slen
(setq b (entget (ssname a i)))
(setq c (cdr (assoc 10 b)))
(setq c (trans c 1 0))
(vl-cmdf "insert" "coor.dwg" c 1 0 "" "" "" "")
(vl-cmdf "scale" c "" c scl )
(setq i (1+ i))
)
(setvar "osmode" 512)
)
Solved! Go to Solution.