CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 10307

CAD tip CAD tip # 5666:

   
Question CAD 
 %  platform  category 
Q - question

How to suppress the Read-Only warning on DWG file open?

A - answer 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    17861×  
Prices - CAD eShop:
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 glossary   



Featuring:
Simply link AutoCAD LT blocks to Excel table data.
Excellink LT 2006 More info


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