Hello all,
I am trying to get an easy plot program for Autocad 2004, I have some uninitiate users here at the shipyard who need a very simple way to print by picking (2) points. I pirated this cool LISP routine off the internet that some very helpful guy had available for free. He ran the following to capture (2) points that the user picks...
(setq pt1 (getpoint "\nSelect Lower Left Hand Corner
of Plotting Area: "))
(setq pt2 (getcorner pt1 "\nSelect Upper Right Hand
Corner of Plotting Area: "))
and then he ran the following to use those points to define the plot window.
(command "-plot" "Yes" "Model" pltyp plsize "Millimeters"
"Landscape" "No" "Window" pt1 pt2 "Fit" "Center"
"Yes" plstyle "Yes" "No" "No" "Yes" "Yes")
Everything works fine, but for some reason Autocad 2004 is not recognizing the points! It defaults to the last plot window picked, whatever that was (extents, points, whatever) and fits it on the page. Usually it just plots out a blank sheet. I have the .dcl and .lsp files that I used if that will help explain.
Can someone tell me what I am doing wrong? Can this routine work in 2004, or will the points not be recognized? As you can tell I am not real up on LISP so any assistance would be sooooooo greatly appreciated. Thanks!