Zugriff auf Zenon API von externem Programm

Zugriff auf Zenon API von externem Programm

Hallo zusammen, 

ich stehe gerade vor dem Problem, dass ich mit einem externen Programm (Konsolenanwendung, etc.) auf die Service-Engine zugreifen muss. 

Ich habe hierbei schon die alten Forenbeiträge zu der VBA-Schnittstelle gesehen. 
Nun stellt sich mir die Frage, wie genau das COM-Objekt in Visual Studio abgerufen werden kann. 

Hat sich die anzusprechende Klasse geändert? 

  1. object comObject = Interaction.GetObject("", "zenOn.Application");

Wäre das oben dargestellte Code-Snippet der richtige Weg auf das COM-Objekt zuzugreifen? 
Was wäre das weiter vorgehen für den Zugriff auf die Service-Engine? 

  1. IProject Project;

  2. foreach(IProject _project in Applicaton.Projectcollection)

    1. if(_project.Name == "Projektname")
      1. Project = _project;
  3. }
  4. // Abruf einer Variable
  5. Project.VariableCollection["Variablenname"].GetValue(0);
Ist dieser Weg auf die Service-Engine zuzugreifen überhaupt noch vorhanden?

Verwendete Software: Zenon10, Windows 10

Danke für eure Antworten!

    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