Open each DWG in read only mode

Discussion in 'AutoCAD' started by mnelson, Sep 14, 2004.

  1. mnelson

    mnelson Guest

    I need to run a script that opens in read only mode. The reason for that is the work does not need to be saved and if the DWG is locked I need the script to continuo. Isn’t there a setting for this in 2002?

    Thanks
     
    mnelson, Sep 14, 2004
    #1
  2. mnelson

    CJ Follmer Guest

    maybe someone else will come up with another method.

    I found that if i used the (open "drawing.dwg") first and then a (command
    ".open" "drawing.dwg" ...) then i could open the file as read-only. This
    was with R14 so you may need a (close "drawing.dwg"). 14 automatically
    closed the file as it started opened the drawing.

    The only problem we've had with that method is it sometimes prevented the
    actual user who had the file open, from saving it until the routine finished
    with the file. We use it in our Batch plotting routine. We have an NT 4
    server so i'm guessing it is to blame but i'm not sure.

    CJ

    is the work does not need to be saved and if the DWG is locked I need the
    script to continuo. Isn't there a setting for this in 2002?
     
    CJ Follmer, Sep 14, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.