StartCalculation Functions
The StartCalculation and StartCalculationSession functions start calculations for a specified System file in a specified Project. These two functions differ only in respect to parameters for login. For more information, see Login Parameters.
Syntax
The following is the syntax for an HTTP request:
POST /WindchillRiskandReliability12.0/DataEngine.asmx/StartCalculation HTTP/1.1
Host: vm-test
Content-Type: application/x-www-form-urlencoded
Content-Length: length

UserName=string&Password=string&GroupName=string&ProjectName=string
&SystemName=string&CalculationOption=string
Parameters
In addition to login parameters, both the StartCalculation and StartCalculationSession functions use these parameters:
ProjectName—The name of the Windchill Risk and Reliability project. This value is case-sensitive.
SystemName—The name of the System file. This value is case-sensitive.
CalculationOption—A string in JSON format from the AdditionalData tag returned from the GetCalculationOption function. For example, assume that the AdditionalData tag contains this string:
{"FMEA":true,"FRACAS":true,"FTA":true,"UserCalcs":true,"userCalculationData":[]}</
The following is an example of an HTTP POST request:
POST /WindchillRiskandReliability12.0/DataEngine.asmx/StartCalculation HTTP/1.1
Host: vm-test
Content-Type: application/x-www-form-urlencoded
Content-Length: length
UserName=Bill&Password=passwd&ProjectName=Tablet PC&GroupName=Managers&
ProjectName=Tablet PC&SystemName=Tablet PC&CalculationOption={"FMEA":true,
"FRACAS":true,"FTA":true,"UserCalcs":true,"userCalculationData":[]}</
Returns
If the user is authenticated and the specified parameters are found, the request ID for the calculation in Task Manager is returned.
<?xml version="1.0" encoding="utf-8"?>
<DataEngineResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.ptc.com/WindchillRiskandReliability/12.0/">
<Success>true</Success>
<AdditionalData>{"RequestID":1010}
</AdditionalData>
</DataEngineResponse>
If the call fails, the AdditionalData tag provides the reason for the failure.