Hallo und guten Morgen.
Also ich habe das Skript GetProejtctProperty.cs in Eplan geladen.
Die Dateien
GetProjectProperty_Template.xml und
GetProjectProperty_Scheme.xml
liegen im gleichen Verzeichnis wie das Skript
..\GetProjectProperty.
Jetzt habe ich ein weiter Skript zum ausführen erstellt.
Hier rufe ich die Methode auf:
string value = GetProjectProperty(Id, Index);
private static 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;
}.
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP