vernonlee Posted May 11, 2015 Posted May 11, 2015 I currently using macro script to facilitate quicker printing. eg, ^C^C-plot;Y;;DWG To PDF.pc3;ISO full bleed A0 (841.00 x 1189.00 MM);m;Landscape;N;W;\\1=1;C;Y;SIACAD_rev.ctb;Y;N;N;N;;Y;Y; The above works fine. However I cannot get this plotter name to work: "\\PLOTSTN2\hp500ps" It is due to the \ I also tried "//PLOTSTN2/hp500ps" but it still do not work. Any advise? Quote
BIGAL Posted May 12, 2015 Posted May 12, 2015 Have to wait till I get back to work but look at my posts about autopilot they have \\stuff in them and they work as we plot to server plotters. Quote
vernonlee Posted May 13, 2015 Author Posted May 13, 2015 Have to wait till I get back to work but look at my posts about autopilot they have \\stuff in them and they work as we plot to server plotters. Did a search & went to this thread http://www.cadtutor.net/forum/showthread.php?64434-Auto-plotting-to-network-plotter-withh-\\-in-name&highlight=\\stuff Tried this but it still will not register \\\\PLOTSTN2\\hp500ps Quote
BIGAL Posted May 13, 2015 Posted May 13, 2015 Sorry on iPad and on holidays at moment so don't have true code but all my autoplot routines use a \\ server name will be back Friday my time, others may post. Quote
vernonlee Posted May 14, 2015 Author Posted May 14, 2015 Sorry on iPad and on holidays at moment so don't have true code but all my autoplot routines use a \\ server name will be back Friday my time, others may post. no problem. Enjoy your holidays. Await your return Quote
vernonlee Posted May 14, 2015 Author Posted May 14, 2015 Sorry on iPad and on holidays at moment so don't have true code but all my autoplot routines use a \\ server name will be back Friday my time, others may post. no problem. Enjoy your holidays. Await your return Quote
BIGAL Posted May 15, 2015 Posted May 15, 2015 I use a lisp so maybe rewrite the macro as if its a lisp you can have lisp in menu's etc. ^c^c(COMMAND "-PLOT" "Y" "" "\\\\PROD\\100xxxxx-PRN03" etc etc) Quote
vernonlee Posted May 16, 2015 Author Posted May 16, 2015 I use a lisp so maybe rewrite the macro as if its a lisp you can have lisp in menu's etc. ^c^c(COMMAND "-PLOT" "Y" "" "\\\\PROD\\100xxxxx-PRN03" etc etc) Don't quite get what you mean. Is LISP a requirement to get server plotter yo work in my case? Or do you mean to draft the macro script like as if it was a LISP to get the server plotter to work? But it is still a single script. Do meaning just put a open bracket & close bracket at the end is my script commend will do? Quote
BIGAL Posted May 18, 2015 Posted May 18, 2015 Yes just add the brackets change ; to space, any returns \ must now be "" (COMMAND "-PLOT" "Y" "" "\\\\PRN03\\100B-PRN03" "A3 (297 x 420 mm)" "m" "LANDSCAPE" "N" "W" "-6,-6" "807,560" "1=2" "C" "y" "DesignlaserCOLOUR.ctb" "Y" "n" "n" "n" "N" "N" "y") ) Quote
YZ Posted May 18, 2015 Posted May 18, 2015 So you have a macro that works for one plot driver. And when you edit that macro to this driver: //PLOTSTN2/hp500ps exactly what happens? Quote
vernonlee Posted May 19, 2015 Author Posted May 19, 2015 So you have a macro that works for one plot driver. And when you edit that macro to this driver: //PLOTSTN2/hp500ps exactly what happens? When i run this ^C^C-plot;Y;;//PLOTSTN2/hp500ps;ISO A0;m;Landscape;N;W;\\1=1;C;Y;RS485-URA A0 COLORED.ctb;Y;N;N;N;;Y;Y; i get this Command: -plotDetailed plot configuration? [Yes/No] : Y Enter a layout name or [?] : Enter an output device name or [?] : //PLOTSTN2/hp500ps /PLOTSTN2/hp500ps> not found. Enter an output device name or [?] : ISO A0 not found. Enter an output device name or [?] : m not found. Enter an output device name or [?] : Landscape not found. Enter an output device name or [?] : N not found. Enter an output device name or [?] : W not found. Quote
vernonlee Posted May 19, 2015 Author Posted May 19, 2015 Yes just add the brackets change ; to space, any returns \ must now be "" (COMMAND "-PLOT" "Y" "" "\\\\PRN03\\100B-PRN03" "A3 (297 x 420 mm)" "m" "LANDSCAPE" "N" "W" "-6,-6" "807,560" "1=2" "C" "y" "DesignlaserCOLOUR.ctb" "Y" "n" "n" "n" "N" "N" "y") ) Not sure what is wrong but tried this 2 variation but could not plot code 1 (COMMAND "-plot" "Y" "\\PLOTSTN2\hp500ps" "ISO A0" "m" "Portrait" "N" "W" "\\" 1=1 "C" "Y" "RS485-URA A0 COLORED.ctb" "Y" "N" "N" "N" "Y" "Y") I got this (the command just stop there) Command: (COMMAND "-plot" "Y" " code 2 (COMMAND "-plot" "Y" "\\\\PLOTSTN2\\hp500ps" "ISO A0" "m" "Portrait" "N" "W" "\\" 1=1 "C" "Y" "RS485-URA A0 COLORED.ctb" "Y" "N" "N" "N" "Y" "Y") I got this (the command just stop there) Command: (COMMAND "-plot" "Y" "Where did I went wrong? Quote
vernonlee Posted May 20, 2015 Author Posted May 20, 2015 Not sure about this "\\" check for yes no etc That is for allowing me to click the window area. Is that what is causing the problem? How should I write it? Quote
ReMark Posted May 20, 2015 Posted May 20, 2015 AutoCAD 2015. You can't create this macro using the Action Recorder? Quote
BIGAL Posted May 21, 2015 Posted May 21, 2015 Just add the two lines at start after the defun line and replace the \\n with p1 p2 (setq p1 (getpoint "\nPick bottom left")) (setq p2 (getpoint "\nPick top right")) Quote
vernonlee Posted May 21, 2015 Author Posted May 21, 2015 AutoCAD 2015. You can't create this macro using the Action Recorder? Tried it. The Action Recorder cannot preselect the plot configurations. It will play up to the plot setup & stop there for you to manually select. Quote
vernonlee Posted May 21, 2015 Author Posted May 21, 2015 Just add the two lines at start after the defun line and replace the \\n with p1 p2 (setq p1 (getpoint "\nPick bottom left")) (setq p2 (getpoint "\nPick top right")) To reduce complications, I base on the extend method but i still get the same error (COMMAND "-plot" "Y" "\\\\PLOTSTN2\\hp500ps" "ISO A0 " "m" "LANDSCAPE" "N" "E" "1:1" "C" "Y" "RS485-URA A0 COLORED.ctb" "Y" "N" "N" "N" "Y" "Y") (COMMAND "-plot" "Y" "\\PLOTSTN2\hp500ps" "ISO A0 " "m" "LANDSCAPE" "N" "E" "1:1" "C" "Y" "RS485-URA A0 COLORED.ctb" "Y" "N" "N" "N" "Y" "Y") I get this (COMMAND "-plot" "Y" " it seems to be stopping at my plotter device. Quote
BIGAL Posted May 22, 2015 Posted May 22, 2015 Maybe a typo look at this carefully the extra space "ISO A0 " Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.