DWG TrueView
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
unable to quit through script
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: unable to quit through script
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: unable to quit through script
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Found the problem.
Seems like it really didnt like having two CRLF at the end of the script, one did the trick.

