Hallo,
ich will bei Systemumstellung alle Konfigurationen wenn möglich mit einem Skript bei dem jeweiligen Nutzer laden können.
Für die Benutzer/Firma/Stationseinstellungen war dies auch kein Problem.
Wenn ich nun aber eine vorher erstellte und exportierte Symbolleiste einbinden will, bekomme ich nachfolgende Fehlermeldung:
0xc08 (7293) [S046006] ERROR (12:34:09) in module EplanEplApiScriptLog: Compilerfehler oder Compilerwarnungen im Script D:\EPLAN_P8_V2.3\Skripte\XYZ\Import_Konfigurationen_test.cs : (ScriptServices.cpp, line 452)
0xc08 (7293) [S000000] ERROR (12:34:09) in module EplanEplApiScriptLog: CS1009 (Zeile:13, Spalte:31): Nicht erkannte Escapesequenz. (ScriptServices.cpp, line 487)
0xc08 (7293) [S000000] ERROR (12:34:09) in module EplanEplApiScriptLog: CS1009 (Zeile:13, Spalte:45): Nicht erkannte Escapesequenz. (ScriptServices.cpp, line 487)
0xc08 (7293) [S000000] ERROR (12:34:09) in module EplanEplApiScriptLog: CS1009 (Zeile:13, Spalte:49): Nicht erkannte Escapesequenz. (ScriptServices.cpp, line 487)
0xc08 (7293) [S000000] ERROR (12:34:09) in module EplanEplApiScriptLog: CS1009 (Zeile:13, Spalte:58): Nicht erkannte Escapesequenz. (ScriptServices.cpp, line 487)
0xc08 (7293) [S046007] ERROR (12:34:09) in module EplanEplApiScriptLog: Das Script D:\EPLAN_P8_V2.3\Skripte\XYZ\Import_Konfigurationen_test.cs konnte nicht compiliert werden. (ScriptServices.cpp, line 502)
----------------------------------------------------------------------------------------------------------------------------------
Inhalt Skript sihe wie folgt aus:
using Eplan.EplApi.ApplicationFramework;
using Eplan.EplApi.Scripting;
public class Class
{
[Start]
public void Function()
{
CommandLineInterpreter oCLI = new CommandLineInterpreter();
ActionCallingContext acc = new ActionCallingContext();
acc.AddParameter("File", "D:\EPLAN_P8_V2.3\XML\XYZ\Symbolleiste_XYZ.xml");
acc.AddParameter("Replace", "Yes");
oCLI.Execute("MfImportToolbarAction", acc);
return;
}
}
Die gleiche Aktion über eine andere Symbolleiste initialisiert funktioniert.
ein "@" => acc.AddParameter("File", @"D:\EPLAN_P8_V2.3\XML\XYZ\Symbolleiste_XYZ.xml"); führt ebenfalls nicht zum Erfolg.
Was habe ich falsch gemacht?
Danke und Gruß
Billy
Eine Antwort auf diesen Beitrag verfassen (mit Zitat/Zitat des Beitrags) IP