ehsantavassolian Posted January 2, 2022 Posted January 2, 2022 Hello friends How can I Change a photo "Change path mode" from (make relative) to (make absolute) in "external references" toolbar by autolisp in autocad 2021 Quote
elyosua Posted January 2, 2022 Posted January 2, 2022 (edited) Read and try this lisp file. Change the path type of all xrefs to full. To change only one external reference, replace the character "*" with "external reference name". changetypepath.lsp Edited January 2, 2022 by elyosua Quote
ronjonp Posted January 2, 2022 Posted January 2, 2022 (command "._-xref" "PathType" "*" "Full") Although why would you want to do this? Relative paths are much more flexible ( ie what if you change your drive from E to F ) Quote
ehsantavassolian Posted January 2, 2022 Author Posted January 2, 2022 1 hour ago, ronjonp said: (command "._-xref" "PathType" "*" "Full") Although why would you want to do this? Relative paths are much more flexible ( ie what if you change your drive from E to F ) Thank you very much for your help Because when (make relative) is active, and I use the command (vla-get-imagefile img), the answer is not complete Quote
ronjonp Posted January 2, 2022 Posted January 2, 2022 (edited) Maybe this? (if (setq p (findfile (vla-get-imagefile vla-object))) (vla-put-imagefile vla-object p) ) Edited January 2, 2022 by ronjonp Quote
ehsantavassolian Posted January 2, 2022 Author Posted January 2, 2022 30 minutes ago, ronjonp said: Maybe this? (if (setq p (findfile (vla-get-imagefile vla-object))) (vla-put-imagefile vla-object p) ) Yes, that's exactly it I did not see this problem in AutoCAD 2012 to 2018 Unfortunately, AutoCAD 2021 performs poorly on these commands Quote
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.