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

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    8120×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 12214:How to set bitmap transparency in an Inventor drawing.
Tip 11570:How to create an Inventor drawing from a photo?
Tip 11063:AutoCAD installation prompts to "Insert Disc 1".
Tip 9911:How to copy an AutoCAD DWG drawing into MS Word or other Office software?
Tip 9564:What are the .TFWX world files?


Back   All CAD Tips All CAD tips&tricks



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:
Track your time spent working on AutoCAD or Revit jobs - automatically with
CADstudio JobTime 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