2 Click solid hatch

2 Click solid hatch

Anonymous
Not applicable
490 Views
1 Reply
Message 1 of 2

2 Click solid hatch

Anonymous
Not applicable

Dears,

Anybody can make a lisp routine for make easy solid hatch with just 2 click. like rectangle command while there have the solid hatch inside.

 

 

Thanks in advance.

0 Likes
Accepted solutions (1)
491 Views
1 Reply
Reply (1)
Message 2 of 2

marko_ribar
Advisor
Advisor
Accepted solution
(defun c:rh ( / hpn )
  (setq hpn (getvar 'hpname))
  (setvar 'hpname "SOLID")
  (command "_.RECTANGLE")
  (while (< 0 (getvar 'cmdactive)) (command "\\"))
  (command "_.-BHATCH" "_S" (ssadd (entlast)))
  (while (< 0 (getvar 'cmdactive)) (command ""))
  (setvar 'hpname hpn)
  (princ)
)
Marko Ribar, d.i.a. (graduated engineer of architecture)