• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    DWG TrueView

    Reply
    Member
    clarochelle
    Posts: 3
    Registered: ‎07-21-2011

    unable to quit through script

    202 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.

    Please use plain text.
    Member
    clarochelle
    Posts: 3
    Registered: ‎07-21-2011

    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.

    Please use plain text.
    Member
    clarochelle
    Posts: 3
    Registered: ‎07-21-2011

    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.

    Please use plain text.