Errors displaying when a dxl is trying to execute through C# environment, but the same dxl is working fine when I use it directly with DOORS. The code I used in C# is as follows: |
Re: Errors in DXL Interaction Screen when connecting through C# Your code didn't come through correctly. But it sure looks to me that your batch command resembles this:
If the unprinted part of your code looks like this:
-Louie |
Re: Errors in DXL Interaction Screen when connecting through C# llandale - Tue Mar 05 12:20:58 EST 2013
If the unprinted part of your code looks like this:
-Louie I have changed the code as follows: DOORSCOMLib.DOORS x = new DOORSCOMLib.DOORS(); string DXLStr = "Doors -u \"ala12\" -P \"a123#\" -b \" #include <E:/AnithaL/test1.dxl>;oleSetResult(c)\""; x.runStr(DXLStr); Still getting the same DXL errors. -E- DXL: <Line:1> incorrectly concatenated tokens -E- DXL: <Line:1> undeclared variable (b) -E- DXL: <Line:1> undeclared variable (P) -E- DXL: <Line:1> undeclared variable (u) -E- DXL: <Line:1> undeclared variable (Doors) -I- DXL: All done. Errors reported: 5. Warnings reported: 0. test1.dxl contains int max(int a, int b) { if a < b then return b else return a } print max(4,5) Please tell me which part is wrong. |
Re: Errors in DXL Interaction Screen when connecting through C# SystemAdmin - Wed Mar 06 01:05:48 EST 2013
I think you want to send DOORS just this part:
[2] Your original command does not presume an existing DOORS process and should be sent to the operating system; changing "Doors" to "Doors.exe", and adding the path; telling it to start that new process with those command switches. I think solution [1] is what you want. -Louie |