XREF Filepath Manipulation

XREF Filepath Manipulation

tcoley95E9Z
Enthusiast Enthusiast
299 Views
1 Reply
Message 1 of 2

XREF Filepath Manipulation

tcoley95E9Z
Enthusiast
Enthusiast

Hello,

I run into a very repetitive problem where multiple xrefs (always images) are blown. I am assuming this is not only because we use dropbox to store all our files but also due to the images having a different filepath from the projects.

Ex:

Projects - "C:\xxx\xxx\xxx\Dropbox\Project\Client\CAD\drawing.dwg"                   >> Project folder

Images - "C:\xxx\xxx\xxx\Dropbox\Project Photos\Client\Images\image.jpg"      >>Project Photos folder

 

I have been trying to create a routine that, after user selects a broken image:

> reads the filepath of selected image (which will be "..\..\..\..\Dropbox")

> then gets either the project filepath or utilizes getenv "userprofile" (if that works)

> cuts the "..\..\..\.." from the images file path and cuts everything after "\users\name\" with the project file path or getenv function

> finally the automation will strcat the two strings to use in an -xref function.

 

My biggest issue right now is playing with the file paths. Can anyone help with achieving this?

Thanks!

0 Likes
300 Views
1 Reply
Reply (1)
Message 2 of 2

pendean
Community Legend
Community Legend

@tcoley95E9Z wrote:

...My biggest issue right now is playing with the file paths. Can anyone help with achieving this?

Thanks!


It all depends on how hard you all tried to mitigate differences in pathing between users since that's how DropBox works by default, aka by user  "\users\name\". From what you've posted, you may be trying to not address it?

 

See from Autodesk https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Xref-paths-are-bro...

 

See similar post on other forums too https://forums.augi.com/showthread.php?149015-Dropbox-need-to-repath-xref-s#:~:text=The%20key%20is%2...

and

https://www.dropboxforum.com/t5/Create-upload-and-share/Using-cad-with-xrefs/td-p/344668 

https://www.youtube.com/watch?v=cjMNe7A9TU8 

 

0 Likes