60001792 Get the filenames of the images that are saved during an SVG save

Article 60001792
Type Wish
Product Converter
Version 7003
Date Added 9/6/2012
Fixed (4/2/2015)
Submitted by Enrico Ossimprandi

Summary

Is it possible to get the filenames of the images that are saved during an SVG save ? Each time I save an drawing to SVG that contains vdimages a new list of png files are created on my disk.

Solution

A new event OnExportedExtraFiles of vdDocument was added in version 7004
Fires when a drawing is saved and additional needed files was created.For example when expoting to SVG file.

Example 
doc.OnExportedExtraFiles += new vdDocument.ExportedExtraFilesEventHandler(doc_OnExportedExtraFiles);

doc.SaveAs("c:\test\test.svg");

//sender :              The active vdDocument object which call the save command.
//ParentFileName : The filename for which the save command is called.
//ExtraFiles :          An array of extra created files need by ParentFileName
void doc_OnExportedExtraFiles(object sender, string ParentFileName, string[] ExtraFiles)
{
     //print out the extra created files
      foreach (string file in ExtraFiles)
      {
         doc.Prompt(string.Format("\r\nExported Extra File : {0}", file));
       }
 }

Send comments on this topic.