CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 4419 
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    14460×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
Tip 11714:How to assign a RAL color to a DWG object and get its ACI equivalent?
Tip 11311:Importing STL files directly into AutoCAD.
Tip 10658:How to open a R/O DWG without the read-only warning?
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?


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:
Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil 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