CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 4888 
Plex.Earth connects AutoCAD and Google Earth

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    15077×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:


Back   All CAD Tips All CAD tips&tricks

Automatic contour label for AutoCAD. « | » Verbose listing of FlexLM errors.

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:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


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