XREF Filepath Manipulation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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!