Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
i want to add a 1 or 2 extra columns. when i change the columns to 5, lisp only prints 5 sheets regardless of the quantity i impute.
This how it works:
pick top corner of 8.5 x 11 sheet (sheet parameter are set)
it will prompt how may sheets you want to plot
plots 4 columns and however may sheets (rows) you want to plot after
this is the lisp.
(defun C:test () (setq startpt (getpoint "\nSelect top-left corner of billpage grid: ")) (setq bpcount (getint "\nSpecify number of billpages: ")) (setq w_rows (fix (/ bpcount 4.0))) (setq bpheight 21.0) (setq bpwidth 16.0) (setq bpgap 2.5) (setq p_col (fix (rem bpcount 4))) (setq row 1) (setq x_0 (car startpt)) (setq y_0 (cadr startpt)) (while (<= row w_rows) (setq col 0) (while (<= col 3) (setq bl (list (+ x_0 (* col (+ bpwidth bpgap))) (- y_0 (+ (* row bpheight) (* (- row 1) bpgap))))) (setq tr (list (+ x_0 (+ (* (+ col 1) bpwidth) (* col bpgap))) (- y_0 (* (- row 1) (+ bpheight bpgap))))) (command "-plot") (command "y") (command "") (command "Bluebeam PDF.pc3") (command "Letter") (command "i") (command "p") (command "n") (command "w") (command bl) (command tr) (command "f") (command "") (command "y") (command "") (command "y") (command "") (command "n") (command "n") (command "y") (setq col (+ col 1)) ) (setq row (+ row 1)) ) (if (/= p_col 0) (progn (setq col 0) (while (<= col (- p_col 1)) (setq bl (list (+ x_0 (* col (+ bpwidth bpgap))) (- y_0 (+ (* (+ 1 w_rows) bpheight) (* w_rows bpgap))))) (setq tr (list (+ x_0 (+ (* (+ col 1) bpwidth) (* col bpgap))) (- y_0 (* w_rows (+ bpheight bpgap))))) (command "-plot") (command "y") (command "") (command "") (command "") (command "i") (command "p") (command "n") (command "w") (command bl) (command tr) (command "f") (command "") (command "y") (command "") (command "y") (command "") (command "n") (command "n") (command "y") (setq col (+ col 1)) ) ) ) (princ) )
Solved! Go to Solution.