New CADforum look launched.
Over 1.089.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new Engineering calculator. New AutoCAD 2026 commands and variables.
Over 1.089.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new Engineering calculator. New AutoCAD 2026 commands and variables.
CAD tip # 5666:
Question
A
There is no AutoCAD variable which could disable the Read Only message (dialog box).
But you can use a VisualLISP utility to open R/O DWG drawings without this message. You can even redefine your standard OPEN command:
(vl-load-com) (command "._UNDEFINE" "_OPEN") (defun C:OPEN ( / fn) (if (setq fn (getfiled "Open R/O" "" "DWG" 0)) (vla-activate (vla-open (vla-get-documents (vlax-get-acad-object)) fn :VLAX-TRUE)) ) ) (princ "\nCommand OPEN redefined, use _REDEFINE to revert")(prin1)Just load this LISP code into your AutoCAD session (with APPLOAD, automatically via .MNL, ACAD.LSP, etc.) and start the OPEN command. For scripts, use (getstring) instead of (getfiled).
ACAD


19.7.2007
18425×
applies to: AutoCAD ·