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

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    5846x  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
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?
Tip 9255:Align image, change width/height independently.
Tip 9139:How to place GeoTIFF images automatically to right positions?


Back   All CAD Tips All CAD tips&tricks

Quickly select all objects in a given layer or all blocks ABC. « | » Two different rectangles with the same AutoCAD 2011 command.

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:
Automatic nesting of 2D parts on rectangular sheets in AutoCAD
AutoNEST 2008 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