Not sure this is exactly what you want
Give this a try, just translate all the prompts
on good english
~'J'~Code:(defun rtd (a) (* 180.0 (/ a pi)) ) (defun C:VB (/ ang flag hgt p1 p2 pt response wid) (setq osm (getvar "osmode")) (setvar "osmode" 0) (setq ort (getvar "orthomode")) (setvar "orthomode" 0) (while (setq wid (getdist "\nEnter the width of box (or press Enter to exit): ")) (setq hgt (getdist "\nEnter the height of box: ")) (if (and wid hgt) (progn (setq flag nil) (initget 1 "Low Heigh") (setq response (getkword "\nChoose voltage level [L]ow or [H]eigh <L> : ")) (if (eq "Heigh" response)(setq flag t)) (setq pt (getpoint "\nInsertion point (bottom center): ")) (setq p1 (list (- (car pt)(/ wid 2.))(cadr pt)) p2 (list (+ (car pt)(/ wid 2.))(+ (cadr pt) hgt)) ) (command "rectangle" p1 p2) (setq ang (getangle pt "\nSpecify rotation angle: ")) (command "rotate" "L" "" pt (rtd ang)) (if flag (command "-hatch" "S" "L" "" "P" "S" "") ) ) ) ) (setvar "orthomode" ort) (setvar "osmode" osm) (princ) )




Reply With Quote
Bookmarks