Jump to content

Recommended Posts

Posted

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?

  • Replies 26
  • Created
  • Last Reply

Top Posters In This Topic

  • vernonlee

    16

  • BIGAL

    8

  • ReMark

    1

  • YZ

    1

Top Posters In This Topic

Posted

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.

Posted

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.

Posted
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 :P

Posted
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 :P

Posted

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)

Posted
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?

Posted

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")
  )

Posted

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?

Posted
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: -plot

Detailed 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.

Posted
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?
Posted
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?

Posted

AutoCAD 2015. You can't create this macro using the Action Recorder?

Posted

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"))

Posted
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.

Posted
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.

Posted

Maybe a typo look at this carefully the extra space "ISO A0 "

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...