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

CAD tip CAD tip # 7308:

   
Question CAD 
 %  platform  category 
Q - question

How to attach an image with AutoLISP?

A - answer If you want to insert (attach) a raster image in your AutoCAD drawing through an AutoLISP code, use the following command:

(command "_IMAGE" "_ATTACH" "img1=myfile1.png" '(0 0 0) 1.0 0.0)

The third parameter specifies the name of the image in the drawing and its disk filename. The next parameter are the coordinates of the insertion point and then follows the scale and rotation of the image.

ACAD
100% *  CAD 
13.4.2010    14438×  
Prices - CAD eShop:
applies to: AutoCAD ·

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 13234:How to place a GeoTIFF image automatically into the correct position?
Tip 12881:How to attach multiple raster images to my DWG in one go?
Tip 12214:How to set bitmap transparency in an Inventor drawing.


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