Author Topic: Q: inserting images  (Read 3169 times)

0 Members and 1 Guest are viewing this topic.

Fuccaro

  • Guest
Q: inserting images
« on: February 25, 2005, 01:23:37 PM »
How can I insert an image using AutoLisp? The IMAGEATTACH function doesn't have a command line version. Calling like
(COMMAND "IMAGEATTACH") will cause the dialog box to pop up. But I try to send all the parameters (insertion point, scale) to AutoCAD from the Lisp.
Also I was unable to do it by manipulating the DXF codes. Can somebody help please?

ronjonp

  • Needs a day job
  • Posts: 7531
Q: inserting images
« Reply #1 on: February 25, 2005, 01:54:11 PM »
Try setting filedia to 0 then use -image.

Code: [Select]
Enter new value for FILEDIA <1>: 0

Command: -image
Enter image option [?/Detach/Path/Reload/Unload/Attach] <Attach>:

Enter image file name to attach: *Cancel*

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

Fuccaro

  • Guest
Q: inserting images
« Reply #2 on: February 28, 2005, 05:23:52 AM »
It works, Thank you Ronjonp! :)