The topic today: Lisp AutoCAD – Separate Hatch
Shortcut command: BRH
Step to step as follow:
- Load Lisp
- Type BRH and Enter
- Pick Pline
- Pick Separative Hatch region
Code Lisp:
(defun c:BRH ()
(grtext -1 “”)
(setq Pline (car (entsel “\n Pick Pline”))
e (entsel “\nPick Area Hatch “)
hObj (car e)
pt (cadr e)
)
(command “.trim” Pline “” pt “” “-hatch” pt “” “_MATCHPROP” hObj (entlast) “”))
Download Lisp here: Link 1, Link 2
Thanks for visiting and reading AutoCADtip.com Blog!