@BlackBox Beat me to the Punch!
@james9710 Here is my version - as simple as I can make it:
(defun C:PLH (/ e el)
(command "._pline")
(while (= (logand (getvar "cmdactive") 1) 1)
(command pause)
)
(if
(and
(setq e (entlast))
(setq el (entget e))
(= (cdr (assoc 0 el)) "LWPOLYLINE")
(= (logand (cdr (assoc 70 el)) 1) 1)
)
(command "._-hatch" "_pro" "_S" "_S" e "" "")
(princ "\nInvalid Polyline Created (Must be complete and Closed).")
)
(princ)
)
I know he uses BricsCAD and I used it for the last 5 years when I was still working in CAD. liked it a lot more the AutoCAD.
there are differences but mostly for the better like double extend.