Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all articles
Browse latest Browse all 3432

C# Integration using editissue to update Project parameters list

$
0
0

This is a follow up to my other project parameters thread:

 

I am using C# to try to update the project parameters list (see other thread for which project parameters) I have the sample code I found on another thread running with no issues.

 

APIFactory.MKSInitialize();

ip = APIFactory.CreateIntegrationPoint("mks.corp.knorr-bremse.com", 7001, false, 4, 13);

session = ip.CreateSession(<user name>,<password>);

Command issuesView;

issuesView = new Command(Command.IM, "editissue");

issuesView.AddOption("field", "'parameter values'='a_16_Auto_FV_Minus_20_psi=64'");

issuesView.AddSelection("478424");

r = session.RunCommand(issuesView);

 

and now I get "A first chance exception of type 'MKS.ManagedAPI.CommandCancelledException' occurred in MKS.ManagedAPI.dll"

 

the Stack trace give me

 

StackTrace "   at MKS.ManagedAPI.CmdRunner.Execute(Command cmd)\r\n   at MKS.ManagedAPI.Session.RunCommand(Command command)\r\n   at Integrity_Parameters.IntegrityInterface.setParametersList() in C:\\Software.Development\\Integrity Parameters\\Integrity Parameters\\IntegrityInterface.cs:line 103" string

 

I have run the same code sequence for  "viewissue", got the same error with a Stack Trace of ::

StackTrace "   at MKS.ManagedAPI.CmdRunner.Execute(Command cmd)\r\n   at MKS.ManagedAPI.Session.RunCommand(Command command)\r\n   at Integrity_Parameters.IntegrityInterface.viewIssue(Int32 num) in C:\\Software.Development\\Integrity Parameters\\Integrity Parameters\\IntegrityInterface.cs:line 52" string

I am not sure if there is a common problem there or if they are two different issues


Viewing all articles
Browse latest Browse all 3432

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>