CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE

CAD tip CAD tip # 5666:

Question

CAD 
 %  platform  category 
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).

See also Tip 2063 and especially the new Tip 10658.

ACAD
100% *CAD
19.7.2007    18795×  
applies to: AutoCAD ·

See also:


Back    All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD: 
OS: 
Categ: 
Text:
 FAQ
  



Featuring:
Increase your productivity with our set of BIM add-on functions for Autodesk Revit
Be.Smart T4R More info


Please use these tips at your own risk.
ARKANCE is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist