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

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 redefíned, 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.

ACAD
100% *  CAD 
19.7.2007    10707x  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 9593:Reverse geocoding - find street address of a point on map.
Tip 9371:How to convert 3D DWF back to an editable CAD model?
Tip 9265:RENAME on steroids - complex renaming of AutoCAD objects.
Tip 8794:Display CAD model in true size 1:1 on your monitor.
Tip 8552:Running AutoCAD without the graphics window (console mode).


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:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension 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