Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
need the mirror function to be working properly , also before a preview of the block the mirror orientation to confirm, but don't know how to do !! An imaginary working illustrated below as gif.
(defun c:INCAP ()
(setq blkname "CAP")
(setq inspt (getpoint "\nclick insertion point for block: "))
(setq inspt (list (car inspt) (cadr inspt) 0.0))
(setq dirpt (getpoint inspt "\nclick direction: "))
(setq rotangle (angle inspt dirpt))
(setq rotangle (* rotangle (/ 180.0 pi)))
(command "_.insert" blkname inspt 1.0 1.0 rotangle)
(command "_.mirror" blkname inspt dirpt "N")
(princ "\nBlock insertion complete with direction-based rotation.")
)
Solved! Go to Solution.