Read Only

Discussion in 'AutoCAD' started by Casey, Jun 14, 2004.

  1. Casey

    Casey Guest

    What is the system variable or registry entry that controls the 'Read Only'
    check box in the file open dialog box?

    Thanks,

    Casey

    - AutoCadLT 2004, WindowsXP
     
    Casey, Jun 14, 2004
    #1
  2. Casey

    Casey Guest

    Although, I guess it's not a check box, it's an option in the 'OPEN'
    pulldown.

    Can it be set to read only as default?

    Thanks
     
    Casey, Jun 14, 2004
    #2
  3. According to the Open Method in VBA, yes you can if you are using AutoCAD.
    Open Method
    Opens an existing drawing file (DWG) and makes it the active
    document.
    object.Open Name[, ReadOnly]

    I noticed you are using AutoCAD LT, and since VBA is "not allowed", then the
    answer is probably no.

    Since I am just learning VBA, I have a question for the "experts"
    I tried via VisualLisp -
    (command "_VBASTMT" (strcat "AcadApplication.Documents.Open " (chr 34)
    "Drawing1" (chr 34) ", read-only"))
    and this opened the drawing, but NOT in read-only mode.
     
    Alan Henderson @ A'cad Solutions, Jun 14, 2004
    #3
  4. Casey

    Jeff Mishler Guest

    replace "read-only" with "true"

    Jeff
     
    Jeff Mishler, Jun 14, 2004
    #4
  5. Casey

    Owen Wengerd Guest

    What is the system variable or registry entry that controls the
    There is no way to set it statically, but "remembering" the setting is one
    of the features of my shareware QuikPik utility
    (http://www.manusoft.com/Software/QuikPik/Index.stm). :)
     
    Owen Wengerd, Jun 15, 2004
    #5
  6. That was amazingly simply.
    I mistook object.Open Name[, ReadOnly] literally.
    Thanks!
     
    Alan Henderson @ A'cad Solutions, Jun 15, 2004
    #6
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.