Extract files with certain equipment group.

Extract files with certain equipment group.

Hello. 
I use Zenon 10 Build 162215, VisualStudio 2022 and Copa-Data Developer Tools 14.
It is a Wizard for Engineering Studio.
I need to export files in the Zenon Editor. I have this code:
  1. i_Anzahl = prj.FileManagement.GetFolder(FolderPath.Graphics).FileCount;
  2. for (i = 0; i < i_Anzahl; i++)
  3.  {
  4.      strZwischenspeicher = prj.FileManagement.GetFolder(FolderPath.Graphics).GetFileItem(i).Name;
  5. String strFilePath3 = Path.Combine(strFilePath1, strZwischenspeicher);
  6. strFilePath2 = Path.Combine(strPath, strZwischenspeicher);
  7. //How can I find out which EquipmentGroup the file is in?
  8. File.Copy(strFilePath3, strFilePath2);
  9. }
I only want to extract files, which belong to a certain equipment group. But I can not find any function to find it out.
With functions this is no problem:
  1. foreach (IFunction myFunction in prj.FunctionCollection)
  2. {
  3.     strZwischenspeicher = myFunction.GetDynamicProperty("SystemModelGroup.SystemModelGroup").ToString();

  4.     if (strZwischenspeicher.Contains(strEquipmentGroupID))
  5.     {
  6.         strFilePath1 = Path.Combine(strPath, myFunction.Name + ".xml");
  7.         prj.FunctionCollection.ExportToXml(myFunction.Name, strFilePath1);
  8.     }
  9. }