CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 1939 
Plex.Earth connects AutoCAD and Google Earth

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.

100% *  CAD 
13.4.2010    6938×  
Comments   Tell a friend
applies to: AutoCAD ·

See also:
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?
Tip 9255:Align image, change width/height independently.

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   

Publish interactive 3D PDF models from AutoCAD, Inventor or Revit with Share3D 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.