Good afternoon ...
I am having some trouble executing a script via ScriptPro. What I need is to be able to open a drawing, run a lisp, plot, and close the drawing ... Open Next repeat steps for about 50 drawings ... twice (B size and D size). When I run what I have it won't recognize the lisp. The lisp is part of acad.lsp and is loaded into every drawing.
Lisp:
Reorganizes the draw order for printing purposes.
Code:
;Print Fix ***** pf1
(defun c:pf1 ()
(command "mspace")
(if(ssget "x" '((0 . "insert")))
(command "draworder" "p" "" "f")
)
(if(ssget "x" '((0 . "insert")(2 . "BaseMap")))
(command "draworder" "p" "" "b")
)
(if(ssget "x" '((0 . "hatch")(8 . "OUTFALL*")))
(command "draworder" "p" "" "b")
)
(if(ssget "x" '((0 . "hatch")(8 . "Unit_ID")))
(command "draworder" "p" "" "f")
)
(if(ssget "x" '((0 . "insert")(8 . "Unit_ID")))
(command "draworder" "p" "" "f" "pspace")
)
)
Script:
Code:
pf1
-plot
y
24x36 Submittal
E-5000 PS US
Tabloid
Inches
landscape
n
extents
fit
center
n
.
y
n
n
n
n
n
y
Side note ... Is there a way to print multiple copies?
Thanks for any help ... I am at the end of my rope.