Jump to content

Change path mode in "external references"


Recommended Posts

Posted

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

Screenshot 2022-01-02 112102.jpg

Posted (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 by elyosua
Posted
(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 )

Posted
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

 

 

Screenshot 2022-01-02 230743.jpg

Screenshot 2022-01-02 230845.jpg

Posted (edited)

Maybe this? 

(if (setq p (findfile (vla-get-imagefile vla-object)))
  (vla-put-imagefile vla-object p)
)

 

Edited by ronjonp
Posted
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

 

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...