ISegmentPair.GetProjectFile() is slow

I would liek to get projectFileID and filename from ISegmentPair.

So i create following code.

e.g

foreach (ISegmentPair segPair in doc.SegmentPairs)
{

 ProjectFile projectFile = segPair.GetProjectFile();
 string projectFileId = projectFile.Id.ToString();
 string projectFileName = projectFile.Name;

...
}

But when document consist with multiple file, it seems that  ISegmentPair.GetProjectFile() is very slow.

Is there another way to get project file guid and file name from ISegmentPair ?

Best regards,

Masayuki

Parents Reply Children