- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have written an AutoLISP function for plotting model space that takes two arguments: the first is the name of a Windows System Printer, the second is the name of a Page Setup. Normally this function is placed in a menu macro with the following syntax:
(MyPlotLISP "<System Printer Name>" "<Page Setup Name>")
This function has been working well for years in many different menu macros, but today, when I attempt to use it with a system printer whose name contains backslashes (and foreslashes), it stops.
The name of the system printer on this particular machine (which I cannot change without causing others a major inconvenience) is "\\COPYCENTER\4820/9148/8148".
So, I have written the macro this way: ^C^C^P(load "MyPlotLISP") (MyPlotLISP "\\\\MyPrinterServer\\1234/2345/3456" "MyPageSetupName") .
If I execute this code from the command line, it runs right through.
When I click the toolbar button to run the macro, it stops somewhere after the function loads. The odd thing is that nothing appears on the commandline. If I hit Enter, this appears: ("_> , which tells me that it's waiting for something (a parenthesis?, a quote mark?, user input?, not sure).
Is there a trick to getting this to work with such an argument? Or am I out of luck?
Thanks.
Solved! Go to Solution.