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: 4363

CAD tip CAD tip # 12120:

   
Question CAD 
 %  platform  category 
Q - question

Double-click to edit raster images in DWG drawings.

A - answer With a simple utility and a small edit of your menu you can edit raster images attached to your DWG files - directly from AutoCAD.

The standard function assigned to double-click on a raster image is IMAGEADJUST. But you can change it right to launching a raster editor of your preference - e.g. PhotoShop, CorelPAINT, IrfanView, Paint, etc.

The first assumption is the freeware LISP utility ImgEdit - download it from www.cadstudio.cz/download and drag it to the briefcase icon in the dialog of the APPLOAD command - this will ensure it will be loaded in every DWG drawing. This utility defines the command IMGEDIT, which we will use in the menu.

Run the CUI command and in the left bottom pane create a new command "ImgEdit" and assign the macro ^C^CIMGEDIT to it. Then drag this new command up to the tree branch "Double-click actions > Image". Confirm the dialog with OK.

Then just double-click on any image attached with IMAGEATTACH in your AutoCAD session. This will automatically launch the graphic application associated in Windows with the given type of raster image (IrfanView in our case) and unloads (frees) the image for editing. Then save the edited image in your image editor and exit the application. AutoCAD will automatically reload the edited image back to the drawing.

See the usage in action (click for larger):

You can modify the LISP file to launch a predefined graphics app. The mechanism used in this LISP application can be also used for similar tasks requiring to start an external .EXE application and wait for its completion.

ACADCivilMapADTACADM
100% *  CAD 
22.1.2019    1962×  

See also:
Tip 12881:How to attach multiple raster images to my DWG in one go?
Tip 12847:How to make transparent mask for raster maps in Autodesk Infraworks?
Tip 12828:How to quickly delete 3rd party links to external objects in Inventor?
Tip 12609:Dynamo - how to convert a raster photo to 3D model in Revit?
Tip 12365:How to show color print (sketch) also on the sheetmetal flat pattern?


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.
CAD Studio is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist