DWG TrueView
Welcome to Autodesk’s DWG Trueview Forums. Share your knowledge, ask questions, and explore popular DWG Trueview topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

unable to quit through script

3 REPLIES 3
Reply
Message 1 of 4
clarochelle
1211 Views, 3 Replies

unable to quit through script

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.

3 REPLIES 3
Message 2 of 4
clarochelle
in reply to: clarochelle

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.

Message 3 of 4
clarochelle
in reply to: clarochelle

Found the problem.

 

Seems like it really didnt like having two CRLF at the end of the script, one did the trick.

Message 4 of 4

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.

Post to forums  

Autodesk Design & Make Report