0 Members and 1 Guest are viewing this topic.
hi freind i am difficult in my work that is hatch lispi want 200 * 400 size and other size in hatch linei can't find good lisp can you help me some
(if (setq pline (car (entsel "\nSelect a closed contour: ")))(progn(setvar "HPNAME" "ANSI31")(setvar "HPANG" 45)(command "_.-bhatch" "_S" pline "" "_P" "ANSI31" 64 45.0 "") (setvar "HPSCALE" 2) (setvar "HPANG" -45) (command "_.-bhatch" "_S" pline "" "_P" "ANSI31" 128 -45.0 "")) )
(defun c:df(/ ss varLst oVal)(or W (setq W 200))(or H (setq H 400))(setq W (cond ((getreal (strcat "\nWIDTH < " (rtos W 2 0) " >:")))(W)))(setq H (cond ((getreal (strcat "\nLENGTH < " (rtos H 2 0) " >:")))(H)))(setq varLst '("hpname" "HPORIGINMODE" "hpdouble" "cmdecho" "hpAng") oVal (mapcar 'getvar varLst))(mapcar 'setvar varLst '("_USER" 0 0 0 0))(prompt "\nPlease select closed plines :")(if (setq ss (ssget)) (progn (setvar "hpang" 0) (setvar "hpspace" H) (command "-bhatch" "s" ss "" "") (setvar "hpang" (* pi 0.5)) (setvar "hpspace" W) (command "-bhatch" "s" ss "" "") ))(mapcar 'setvar varLst oVal))