I created a Tool Button on one of my Palettes to plot a certain way to a pacific printer. I went through the commands by way of the command prompts (see below) and work just fine. But when I run the commands using the tool button it stops at the command prompt of "Enter an output device name" it does not recognize the device name yet when I copy what's underlined (see below) into the command prompt it works fine.
Thanks for any help that you can give me.
Solved! Go to Solution.
Does the device name you are supplying contain a blank space between any of the characters?
Try applying quotes around the "Device Name".
When scripting on a macro line, including toolbar buttons and
pull-downs, etc., a blank space is the equivalent to [Enter] or ";".
In the future, do yourself a big favor and do not include dots "." or spaces " " in any file names.
Folder names is OK to have these items, just not the file names.
(Attaching files with more than one dot *might* cause anti-virus at the receiving end of your email to
block your message entirely - example is "drawing1.exe.dwg" - the anti-virus does not know otherwise...).
It's been a while since I programmed inside macros.
Next thing to try is to escape the quotes. Use: \"
\"My Printer Type\"
If that does not work, the only other suggestion
is to (setvar "USERS1" "My Printer Type") somewhere
inside your startup sequence. From there, inside the macro,
use (getvar "USERS1") in lieu of the actual printer name.
Of course you must use a non AutoCAD-LT product to do this.
The other thing I noticed is the use of a double forward slash "\\" and a single forward slash "\"
in your printer declaration. I might be suspect to this area causing the problem.
I'm surprised nobody else has piped-in to help...
I have no option on renaming the printer due to it being a network printer.
Apologies for not keeping up with you on this issue.
Did you get it resolved?
One other Item I completely overlooked that may be the answer
you are looking for involves the use of a printer's PC3 file.
In the regular plot dialog select the desired network printer.
Next to the drop-down is a Properties button. Select that.
Inside this new dialog there is a button that says "Save As". Select that.
The default location to save the file *should* be the same as the support path as shown in Options.
The name of the file can be anything - meaning you now can remove the spaces. The file extension
will become PC3.
Now back to your macro - Use this PC3 file as your printer (without the quotes).
My network printer is called "Xerox 6279 Wide Format with FreeFlow Accxes".
The PC3 file I have created is simply called "Xerox6279.PC3".
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.