DWG TrueView

Reply
Member
clarochelle
Posts: 3
Registered: ‎07-21-2011
Message 1 of 3 (296 Views)

unable to quit through script

296 Views, 2 Replies
07-21-2011 05:47 AM

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.

Member
clarochelle
Posts: 3
Registered: ‎07-21-2011
Message 2 of 3 (293 Views)

Re: unable to quit through script

07-21-2011 07:41 AM 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.

Member
clarochelle
Posts: 3
Registered: ‎07-21-2011
Message 3 of 3 (289 Views)

Re: unable to quit through script

07-21-2011 09:52 AM 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.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.