Message 1 of 8
Insert and align block
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have this lisp to inser block but I want to align and associate the block with last inserted block.
and also roate the block 90 degree before insertion.
Spoiler
(defun c:test ( / e )
(if
(and
(setq e (car (entsel "\nSelect Block: ")))
(eq "INSERT" (cdr (assoc 0 (entget e))))
)
(command "_.insert" "Dtag" "_scale" 1 "_rotate" (angtos (cdr (assoc 50 (entget e)))) "" "" )
)
(princ)
)
(if
(and
(setq e (car (entsel "\nSelect Block: ")))
(eq "INSERT" (cdr (assoc 0 (entget e))))
)
(command "_.insert" "Dtag" "_scale" 1 "_rotate" (angtos (cdr (assoc 50 (entget e)))) "" "" )
)
(princ)
)
Thanks