You could try the following script, which operates on the currently-active document. Before you do, please note the following:
- It is generally considered a regressive step to remove file system references from imported graphics. In other words, conventional wisdom would suggest that you are doing damage to your files. I'd recommend backups.
- I just slapped this script together using general scripting knowledge. I don't make a habit of breaking references. If this thing does something else unexpected, you are on your own.
Russ
|
var counter = 0; |
|
var graphic = app.ActiveDoc.FirstGraphicInDoc; |
|
while(graphic.ObjectValid()) |
|
{ |
| |
if(graphic.constructor.name == "Inset" && |
| |
graphic.InsetFile != "") |
| |
{ |
| |
graphic.GraphicIsSelected = true; |
| |
graphic.InsetFile = ""; |
| |
graphic.GraphicIsSelected = false; |
| |
counter++; |
| |
} |
| |
|
| |
graphic = graphic.NextGraphicInDoc; |
|
|
} |
|
alert("Script complete. " + counter + " graphic(s) converted."); |