RepCad Posted June 8 Share Posted June 8 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) Quote Link to comment Share on other sites More sharing options...
mhupp Posted June 8 Share Posted June 8 https://www.cadtutor.net/forum/topic/44080-up-and-running-with-the-2013-core-console/ Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 9 Share Posted June 9 (edited) These may be useful examples. (command "erase" (ssget "X" '((0 . "IMAGE"))) "") (command "imageattach" (strcat "D:\\acadtemp\\" img) pt 1000 0) Edited June 9 by BIGAL 1 Quote Link to comment Share on other sites More sharing options...
RepCad Posted June 17 Author Share Posted June 17 (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 June 17 by RepCad Quote Link to comment Share on other sites More sharing options...
SLW210 Posted June 17 Share Posted June 17 Do you need a LISP solution? You might look at the Reference Manager, it's in your Programs>AutoCAD folder. How to change Xref paths for multiple drawings in AutoCAD Products (autodesk.com) 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.