// Komplettes Skript erstellt von M.M. using System; using System.Diagnostics; using System.IO; using System.Xml; using System.Threading; using System.Collections.Generic; using System.Windows.Forms; using Eplan.EplApi.ApplicationFramework; using Eplan.EplApi.Base; using Eplan.EplApi.Scripting; class GetProjectPropertyTest { // Projekteigenschaften auslesen private string GetProjectProperty(string id, string index) { string value = null; ActionCallingContext actionCallingContext = new ActionCallingContext(); actionCallingContext.AddParameter("id", id); actionCallingContext.AddParameter("index", index); new CommandLineInterpreter().Execute("GetProjectProperty", actionCallingContext); actionCallingContext.GetParameter("value", ref value); return value; } [Start] public void ActionFunction() { // Anlegen des benötigten String string projectProperty = GetProjectProperty("10011", "0"); // Projektbeschreibung MessageBox.Show( projectProperty + "\n\r" + "Die Ausgabe der Projektbeschreibung funktioniert!", "Information", MessageBoxButtons.OK, MessageBoxIcon.Warning ); } }