Get Result of Command run through c# in E3D

Hi All,

How to get the Result of Command run by C# in Aveva E3D, I have used .Result Property getting null Value, Please help me

Thanks and Regards
Sagar M Keri

Parents
  • Have you tried store result in pml variable as below example 

    Aveva.Core.Utilities.CommandLine.Command commandLineRun;
    string commandString = string.Empty;
    commandString = "VAR !!REMMODE MODE";
    commandLineRun = Aveva.Core.Utilities.CommandLine.Command.CreateCommand(commandString);
    commandLineRun.RunInPdms();
    string Mode = commandLineRun.GetPMLVariableString("REMMODE");

Reply
  • Have you tried store result in pml variable as below example 

    Aveva.Core.Utilities.CommandLine.Command commandLineRun;
    string commandString = string.Empty;
    commandString = "VAR !!REMMODE MODE";
    commandLineRun = Aveva.Core.Utilities.CommandLine.Command.CreateCommand(commandString);
    commandLineRun.RunInPdms();
    string Mode = commandLineRun.GetPMLVariableString("REMMODE");

Children
No Data