;;;Creates plan viewport just inside our standard ANSI-D size sheet border. ;;;Includes a notch around our revision block. ;;;Creates profile viewport on grid indices over our standard ANSI-D size sheet border ;;;and profile grid block. ;;; ;;;Expects the border and grid block to be scaled 1:1 with origin at 0.0,0.0 per standard. ;;; ;;;> Author: Henry C. Francis ;;;> 425 N. Ashe St. ;;;> Southern Pines, NC 28387 ;;;> http://paracadd.com ;;;> All rights reserved. ;;; ;;;> COPYRIGHT: 2-6-2006 ;;;> EDITED: 02-07-2006 ;;; (defun c:ansidppvp () (command) (setq old_ansidppvp_osmode (getvar"osmode")) (setvar"osmode"0) (if ukword nil (load "ukword" "File UKWORD.LSP not found! ")) (setq whichgrid (strcat(ukword 1 "20 30 40 50 60" "Horiz.scale? [20 30 40 50 60]" (if whichgrid (substr whichgrid 1 2) "50")) "ppgrid")) (command "pspace") (command ".-layer" "m" "c-vi027nplt" "") (command ".mview" "p" "1.98,11.0" "31.3383,11.0" "31.3383,20.3314" "27.2342,20.3314" "27.2342,21.38" "1.98,21.38" "") (command ".-layer" "m" "c-vi017nplt" "") (cond ((eq (substr whichgrid 1 2) "50") (command ".mview" "3.6592,0.97" "29.6592,11.0" "")) ((or (eq (substr whichgrid 1 2) "20")(eq (substr whichgrid 1 2) "40")) (command ".mview" "4.1592,0.97" "29.1592,11.0" "")) ((or (eq (substr whichgrid 1 2) "30")(eq (substr whichgrid 1 2) "60")) (command ".mview" "2.6591,0.97" "29.9925,11.0" "")) ) (setvar "osmode" old_ansidppvp_osmode) (princ) )