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

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 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    13616×  

See also:
Tip 13938:ModDXF - utility for bulk modification/display of internal DXF properties in DWG entities.
Tip 13421:The MAPIINSERT command does not offer a georeference (data from the world file)
Tip 13131:How to crop an image or PDF underlay in Revit?
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?


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