Jump to content

Recommended Posts

Posted

Hello everyone,

I'm curious to know if it's possible to modify a DWG file without opening it by AutoLisp ? 

For example, I want to change an image source of a dwg file by AutoLisp in my current DWG. (the target dwg file only has an image)

Posted (edited)

These may be useful examples.

 

(command "erase" (ssget "X" '((0 . "IMAGE"))) "")

 

(command "imageattach" (strcat "D:\\acadtemp\\" img) pt 1000 0)

 

 

Edited by BIGAL
  • Like 1
  • 2 weeks later...
Posted (edited)
On 6/9/2024 at 7:42 AM, BIGAL said:

These may be useful examples.

 

(command "erase" (ssget "X" '((0 . "IMAGE"))) "")

 

(command "imageattach" (strcat "D:\\acadtemp\\" img) pt 1000 0)

 

 

I mean is to change image's source of a dwg file (which it's closed)

Edited by RepCad

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...