Hi I'm trying to run the following script to automate printing documents in C#.
-------
_plot
y
M1
PDFCreator
Tabloid
Inches
Landscape
No
Extents
Fit
Center
Yes
monochrome.ctb
No
Yes
No
No
No
No
Yes
Quit
Yes
--------
Everything until Quit is working fine. But when I issue the Quit I get a window saying "Drawing file is write protected", which in itself isn't an issue since I dont want to save it. So I issue Yes to the question "Really want to discard all changes to drawing".
Problem is after that it sits there. I tried doing
-------
Quit
Yes
Quit
------
But then I only end up, again, with the question "Really want to discard all changes to drawing", and if I issue Yes again I'm just where I begun.
Any help would be greatly appreciated.
EDIT: I tried issuing close which works fine, but then it doesnt get to my quit command.
A few more details.
The quit seems to work the first time the file is opened this way.
And by the way, yes the file is on a network drive.
Found the problem.
Seems like it really didnt like having two CRLF at the end of the script, one did the trick.
You may never see this, but if you do....
A huge thank you. Removing empty line at the end of script worked.
Can't find what you're looking for? Ask the community or share your knowledge.