Export Graphics depending on SytemModelGroup

Export Graphics depending on SytemModelGroup

Hi.
Every item in Zenon can be connected to a SystemModelGroup.
I already have code to export screens, functions and more which are connected to the SystemModelGroup  "Customized".
But it seems, that I can not do that for graphics and symbols.
Here is example-code out of my application. Besides of the lines commented out it is working fine.
There is no GetDynamicProperty for Graphics.
Is there a possibility to get the SystemModelGroup of a graphic file?
  1. #region Graphics
  2. //11_Graphics anlegen
  3. strPath = Path.Combine(strExportPfad, "11_Graphics");

  4. if (Directory.Exists(strPath))
  5. {
  6. }
  7. else
  8. {
  9.     Directory.CreateDirectory(strPath);
  10. }
  11. ////Graphics exportieren.
  12. for(int i=0; i < prj.FileManagement.GetFolder(FolderPath.Graphics).FileCount;i++)
  13. {
  14.     String strZwischenspeicher;
  15.     //strZwischenspeicher = prj.FileManagement.GetFolder(FolderPath.Graphics).GetFileItem(i).GetDynamicProperty("SystemModelGroup.SystemModelGroup").ToString();

  16.     //if (strZwischenspeicher.Equals("Customized"))
  17.     //{
  18. strFilePath1 = Path.Combine(prj.Path, "zenon");
  19. strFilePath1 = Path.Combine(strFilePath1, "custom");
  20. strFilePath1 = Path.Combine(strFilePath1, prj.FileManagement.GetFolder(FolderPath.Graphics).Name);
  21. strFilePath1 = Path.Combine(strFilePath1, prj.FileManagement.GetFolder(FolderPath.Graphics).GetFileItem(i).Name);
  22. strFilePath2 = Path.Combine(strPath, prj.FileManagement.GetFolder(FolderPath.Graphics).GetFileItem(i).Name);
  23. File.Copy(strFilePath1, strFilePath2);
  24.     //}
  25. }
  26. #endregion

    Disclaimer

    This document governs the use of our Community Forum. By registering and using the platform, you accept these conditions.

    The COPA-DATA Community Forum serves to encourage the exchange of information and experience about the zenon software between forum users respectively zenon users.

    Please mind that any published information on the Community Forum is the subjective opinion and view based on the experience and the level of knowledge of the author. COPA-DATA does not overtake any responsibility for the content and the accuracy of the shared information.

    Users of the Community Forum are encouraged to share only well-founded experiences and to point out any risks associated with the implementation of proposed solutions to problems. COPA-DATA at its absolute discretion, reserves the right to moderate the forum. In this connection COPA-DATA may remove any information containing false facts, potentially dangerous solutions, bad language or content that may insult, degrade or discriminate others. COPA-DATA may block a non-complying user from forum access if the user violated this provision.

    COPA-DATA reserves the right to change this document from time to time at own discretion.


    Ing. Punzenberger COPA-DATA GmbH
    Karolingerstraße 7b · 5020 Salzburg · Austria
    www.copadata.com