Hi,
I am currently trying to extract Dabacon data from an AVEVA project with a C# program, using the AVEVA .NET API.
Everything works well until I try to use a PML command to filter the elements I want to collect.
I tried to use the DbExpression object to parse a PML command in the C# code :
bool expressionResult = DbExpression.Parse("SEQ GT 5", out DbExpression ExpResult, out PdmsMessage Experror);
This simple PML expression should work great, but when I launch de debug, the following message appear on the console :
Dummy sp/SPSYN2 called
(47,62) CP: Incomplete command line
And expressionResult returns false, meaning that the expression is not valid.
I have the exact same problem when I try to create a collection using DbCollection object.
I have also tried to run a PML command using the Command.CreateCommand() and get the same message.
I have tried with many different PML expressions, still the same issue.
It seems that everything is OK in terms of project connection and MDB, as I succeed in collecting db elements.
Am I missing something ? Maybe there is a specific tool to load beforerhand so that C# can recognize PML commands ?
Thanks in advance for your precious help.
Brice