Script not fully completing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The issue I have is the following: When I run the GRE_IEMBED.scr script, the script works on drawings that have tiffs that previously, already share the same file location. But with drawings that previously didn't share the same file location, the script completes the repath command successfully, but when the iembed command is called upon, it won't embed the tiff into the drawing if the tiff link was previously broken before the repath command is ran and updates the path. Is there a potential fix for this? The workaround i found is to have another script run first which is called REPATHSCRIPT.scr and if i run this first, and then run the original script, this fixes the issue, but the end goal would be to just have one script do everything if that is possible. I have attached all my commands and scripts but I cant attach any drawings, due to the thread not allowing .TIF extensions to be attached, and all the dwg files have tiffs associated with them.
GRE_IEMBED.scr:
zoom
e
SwitchToModel
(repath)
qsave
check
IEMBED
REPATHSCRIPT.SCR:
SwitchToModel
(repath)
qsave