OperationApi
| Method | Description |
|---|---|
| AddAnchorGridOperationAsync | Adds a new anchor grid operation to the connection. |
| AddBoltGridOperationAsync | Adds a new bolt grid operation to the connection. |
| AddContactGridOperationAsync | Adds a new contact grid operation to the connection. |
| AddContactOperationAsync | Adds a new contact operation to the connection. |
| AddCutOperationAsync | Adds a new cut operation to the connection. |
| AddNegativeMemberOperationAsync | Adds a new negative member operation to the connection. |
| AddNegativePlateOperationAsync | Adds a new negative plate operation to the connection. |
| AddPinGridOperationAsync | Adds a new pin grid operation to the connection. |
| AddPlateCutOperationAsync | Adds a new plate cut operation to the connection. |
| AddStiffeningMemberAsync | Adds a new stiffening member operation to the connection. |
| AddStiffeningPlateAsync | Adds a new stiffening plate operation to the connection. |
| AddWeldOperationAsync | Adds a new weld operation to the connection. |
| AddWorkPlaneOperationAsync | Adds a new work plane operation to the connection. |
| DeleteOperationsAsync | Delete all operations for the connection. |
| GetAnchorGridOperationAsync | Returns the Anchor Grid operation with the given id, with all fields populated. |
| GetAnchorGridOperationsAsync | Returns all Anchor Grid operations in the connection. |
| GetBoltGridOperationAsync | Returns the Bolt Grid operation with the given id, with all fields populated. |
| GetBoltGridOperationsAsync | Returns all Bolt Grid operations in the connection. |
| GetCommonOperationPropertiesAsync | Gets common operation properties. |
| GetContactGridOperationAsync | Returns the Contact Grid operation with the given id, with all fields populated. |
| GetContactGridOperationsAsync | Returns all Contact Grid operations in the connection. |
| GetContactOperationAsync | Returns the Contact operation with the given id, with all fields populated. |
| GetContactOperationsAsync | Returns all Contact operations in the connection. |
| GetCutOperationAsync | Returns the Cut operation with the given id, with all fields populated. |
| GetCutOperationsAsync | Returns all Cut operations in the connection. |
| GetNegativeMemberOperationAsync | Returns the Negative Member operation with the given id, with all fields populated. |
| GetNegativeMemberOperationsAsync | Returns all Negative Member operations in the connection. |
| GetNegativePlateOperationAsync | Returns the Negative Plate operation with the given id, with all fields populated. |
| GetNegativePlateOperationsAsync | Returns all Negative Plate operations in the connection. |
| GetOperationsAsync | Gets the list of operations for the connection. |
| GetPinGridOperationAsync | Returns the Pin Grid operation with the given id, with all fields populated. |
| GetPinGridOperationsAsync | Returns all Pin Grid operations in the connection. |
| GetPlateCutOperationAsync | Returns the Plate Cut operation with the given id, with all fields populated. |
| GetPlateCutOperationsAsync | Returns all Plate Cut operations in the connection. |
| GetStiffeningMemberOperationAsync | Returns the Stiffening Member operation with the given id. |
| GetStiffeningMemberOperationsAsync | Returns all Stiffening Member operations in the connection. |
| GetStiffeningPlateOperationAsync | Returns the Stiffening Plate operation with the given id, with all fields populated. |
| GetStiffeningPlateOperationsAsync | Returns all Stiffening Plate operations in the connection. |
| GetWeldOperationAsync | Returns the Weld operation with the given id, with all fields populated. |
| GetWeldOperationsAsync | Returns all Weld operations in the connection. |
| GetWorkPlaneOperationAsync | Returns the Work Plane operation with the given id, with all fields populated. |
| GetWorkPlaneOperationsAsync | Returns all Work Plane operations in the connection. |
| PreDesignWeldsAsync | Pre-designs welds in the connection. |
| UpdateAnchorGridOperationAsync | Replaces an Anchor Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdateBoltGridOperationAsync | Replaces a Bolt Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdateCommonOperationPropertiesAsync | Updates common properties for all operations. |
| UpdateContactGridOperationAsync | Replaces a Contact Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdateContactOperationAsync | Replaces a Contact operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdateCutOperationAsync | Replaces a Cut operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdateNegativeMemberOperationAsync | Replaces a Negative Member operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdateNegativePlateOperationAsync | Replaces a Negative Plate operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdatePinGridOperationAsync | Replaces a Pin Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdatePlateCutOperationAsync | Replaces a Plate Cut operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdateStiffeningMemberOperationAsync | Replaces a Stiffening Member operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdateStiffeningPlateOperationAsync | Replaces a Stiffening Plate operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdateWeldOperationAsync | Replaces a Weld operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
| UpdateWorkPlaneOperationAsync | Replaces a Work Plane operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection. |
AddAnchorGridOperationAsync
ConAddOperationResult AddAnchorGridOperationAsync (Guid projectId, int connectionId, ConAnchorGridOperation conAnchorGridOperation = null)
Adds a new anchor grid operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conAnchorGridOperation | ConAnchorGridOperation | Anchor grid operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddAnchorGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conAnchorGridOperation = new ConAnchorGridOperation(); // ConAnchorGridOperation | Anchor grid operation definition. (optional)
try
{
// Adds a new anchor grid operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddAnchorGridOperationAsync(projectId, connectionId, conAnchorGridOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddAnchorGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/anchor-grid
Using the AddAnchorGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new anchor grid operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddAnchorGridOperationWithHttpInfo(projectId, connectionId, conAnchorGridOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddAnchorGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddBoltGridOperationAsync
ConAddOperationResult AddBoltGridOperationAsync (Guid projectId, int connectionId, ConBoltGridOperation conBoltGridOperation = null)
Adds a new bolt grid operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conBoltGridOperation | ConBoltGridOperation | Bolt grid operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddBoltGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conBoltGridOperation = new ConBoltGridOperation(); // ConBoltGridOperation | Bolt grid operation definition. (optional)
try
{
// Adds a new bolt grid operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddBoltGridOperationAsync(projectId, connectionId, conBoltGridOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddBoltGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/bolt-grid
Using the AddBoltGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new bolt grid operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddBoltGridOperationWithHttpInfo(projectId, connectionId, conBoltGridOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddBoltGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddContactGridOperationAsync
ConAddOperationResult AddContactGridOperationAsync (Guid projectId, int connectionId, ConContactGridOperation conContactGridOperation = null)
Adds a new contact grid operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conContactGridOperation | ConContactGridOperation | Contact grid operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddContactGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conContactGridOperation = new ConContactGridOperation(); // ConContactGridOperation | Contact grid operation definition. (optional)
try
{
// Adds a new contact grid operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddContactGridOperationAsync(projectId, connectionId, conContactGridOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddContactGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/contact-grid
Using the AddContactGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new contact grid operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddContactGridOperationWithHttpInfo(projectId, connectionId, conContactGridOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddContactGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddContactOperationAsync
ConAddOperationResult AddContactOperationAsync (Guid projectId, int connectionId, ConContactOperation conContactOperation = null)
Adds a new contact operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conContactOperation | ConContactOperation | Contact operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddContactOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conContactOperation = new ConContactOperation(); // ConContactOperation | Contact operation definition. (optional)
try
{
// Adds a new contact operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddContactOperationAsync(projectId, connectionId, conContactOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddContactOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/contact
Using the AddContactOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new contact operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddContactOperationWithHttpInfo(projectId, connectionId, conContactOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddContactOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddCutOperationAsync
ConAddOperationResult AddCutOperationAsync (Guid projectId, int connectionId, ConCutOperation conCutOperation = null)
Adds a new cut operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conCutOperation | ConCutOperation | Cut operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddCutOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conCutOperation = new ConCutOperation(); // ConCutOperation | Cut operation definition. (optional)
try
{
// Adds a new cut operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddCutOperationAsync(projectId, connectionId, conCutOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddCutOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/cut
Using the AddCutOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new cut operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddCutOperationWithHttpInfo(projectId, connectionId, conCutOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddCutOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddNegativeMemberOperationAsync
ConAddOperationResult AddNegativeMemberOperationAsync (Guid projectId, int connectionId, ConNegativeMemberOperation conNegativeMemberOperation = null)
Adds a new negative member operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conNegativeMemberOperation | ConNegativeMemberOperation | Negative member operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddNegativeMemberOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conNegativeMemberOperation = new ConNegativeMemberOperation(); // ConNegativeMemberOperation | Negative member operation definition. (optional)
try
{
// Adds a new negative member operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddNegativeMemberOperationAsync(projectId, connectionId, conNegativeMemberOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddNegativeMemberOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/negative-member
Using the AddNegativeMemberOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new negative member operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddNegativeMemberOperationWithHttpInfo(projectId, connectionId, conNegativeMemberOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddNegativeMemberOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddNegativePlateOperationAsync
ConAddOperationResult AddNegativePlateOperationAsync (Guid projectId, int connectionId, ConNegativePlateOperation conNegativePlateOperation = null)
Adds a new negative plate operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conNegativePlateOperation | ConNegativePlateOperation | Negative plate operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddNegativePlateOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conNegativePlateOperation = new ConNegativePlateOperation(); // ConNegativePlateOperation | Negative plate operation definition. (optional)
try
{
// Adds a new negative plate operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddNegativePlateOperationAsync(projectId, connectionId, conNegativePlateOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddNegativePlateOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/negative-plate
Using the AddNegativePlateOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new negative plate operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddNegativePlateOperationWithHttpInfo(projectId, connectionId, conNegativePlateOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddNegativePlateOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddPinGridOperationAsync
ConAddOperationResult AddPinGridOperationAsync (Guid projectId, int connectionId, ConPinGridOperation conPinGridOperation = null)
Adds a new pin grid operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conPinGridOperation | ConPinGridOperation | Pin grid operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddPinGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conPinGridOperation = new ConPinGridOperation(); // ConPinGridOperation | Pin grid operation definition. (optional)
try
{
// Adds a new pin grid operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddPinGridOperationAsync(projectId, connectionId, conPinGridOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddPinGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/pin-grid
Using the AddPinGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new pin grid operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddPinGridOperationWithHttpInfo(projectId, connectionId, conPinGridOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddPinGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddPlateCutOperationAsync
ConAddOperationResult AddPlateCutOperationAsync (Guid projectId, int connectionId, ConPlateCutOperation conPlateCutOperation = null)
Adds a new plate cut operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conPlateCutOperation | ConPlateCutOperation | Plate cut operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddPlateCutOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conPlateCutOperation = new ConPlateCutOperation(); // ConPlateCutOperation | Plate cut operation definition. (optional)
try
{
// Adds a new plate cut operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddPlateCutOperationAsync(projectId, connectionId, conPlateCutOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddPlateCutOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/plate-cut
Using the AddPlateCutOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new plate cut operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddPlateCutOperationWithHttpInfo(projectId, connectionId, conPlateCutOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddPlateCutOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddStiffeningMemberAsync
ConAddOperationResult AddStiffeningMemberAsync (Guid projectId, int connectionId, ConStiffeningMemberOperation conStiffeningMemberOperation = null)
Adds a new stiffening member operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conStiffeningMemberOperation | ConStiffeningMemberOperation | Stiffening member operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddStiffeningMemberAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conStiffeningMemberOperation = new ConStiffeningMemberOperation(); // ConStiffeningMemberOperation | Stiffening member operation definition. (optional)
try
{
// Adds a new stiffening member operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddStiffeningMemberAsync(projectId, connectionId, conStiffeningMemberOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddStiffeningMemberAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/stiffening-member
Using the AddStiffeningMemberWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new stiffening member operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddStiffeningMemberWithHttpInfo(projectId, connectionId, conStiffeningMemberOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddStiffeningMemberWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddStiffeningPlateAsync
ConAddOperationResult AddStiffeningPlateAsync (Guid projectId, int connectionId, ConStiffeningPlateOperation conStiffeningPlateOperation = null)
Adds a new stiffening plate operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conStiffeningPlateOperation | ConStiffeningPlateOperation | Stiffening plate operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddStiffeningPlateAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conStiffeningPlateOperation = new ConStiffeningPlateOperation(); // ConStiffeningPlateOperation | Stiffening plate operation definition. (optional)
try
{
// Adds a new stiffening plate operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddStiffeningPlateAsync(projectId, connectionId, conStiffeningPlateOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddStiffeningPlateAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/stiffening-plate
Using the AddStiffeningPlateWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new stiffening plate operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddStiffeningPlateWithHttpInfo(projectId, connectionId, conStiffeningPlateOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddStiffeningPlateWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddWeldOperationAsync
ConAddOperationResult AddWeldOperationAsync (Guid projectId, int connectionId, ConWeldOperation conWeldOperation = null)
Adds a new weld operation to the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conWeldOperation | ConWeldOperation | Weld operation definition. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddWeldOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conWeldOperation = new ConWeldOperation(); // ConWeldOperation | Weld operation definition. (optional)
try
{
// Adds a new weld operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddWeldOperationAsync(projectId, connectionId, conWeldOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddWeldOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/weld
Using the AddWeldOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new weld operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddWeldOperationWithHttpInfo(projectId, connectionId, conWeldOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddWeldOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AddWorkPlaneOperationAsync
ConAddOperationResult AddWorkPlaneOperationAsync (Guid projectId, int connectionId, ConWorkPlaneOperation conWorkPlaneOperation = null)
Adds a new work plane operation to the connection.
A work plane is virtual reference geometry used by other operations (e.g. cuts) and for fatigue analysis. It has no structural effect by itself. Supports all three methods (ByAngles, ByNormalVector, ByIntersection) and all coordinate system origins (Joint, Member, Plate).
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | Id of the connection the operation will be added to. | |
| conWorkPlaneOperation | ConWorkPlaneOperation | Work plane definition (origin, normal, method). | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class AddWorkPlaneOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | Id of the connection the operation will be added to.
var conWorkPlaneOperation = new ConWorkPlaneOperation(); // ConWorkPlaneOperation | Work plane definition (origin, normal, method). (optional)
try
{
// Adds a new work plane operation to the connection.
ConAddOperationResult result = await conClient.Operation.AddWorkPlaneOperationAsync(projectId, connectionId, conWorkPlaneOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.AddWorkPlaneOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/work-plane
Using the AddWorkPlaneOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Adds a new work plane operation to the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.AddWorkPlaneOperationWithHttpInfo(projectId, connectionId, conWorkPlaneOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.AddWorkPlaneOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteOperationsAsync
void DeleteOperationsAsync (Guid projectId, int connectionId)
Delete all operations for the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project. | |
| connectionId | int | The ID of the connection. |
Return type
void (empty response body)
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class DeleteOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Delete all operations for the connection.
conClient.Operation.DeleteOperationsAsync(projectId, connectionId);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.DeleteOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
using IdeaStatiCa.ConnectionApi;
namespace CodeSamples
{
public partial class ClientExamples
{
/// <summary>
/// Deletes all manufacturing operations of a connection.
/// </summary>
/// <param name="conClient">The connected API Client</param>
public static async Task DeleteOperations(IConnectionApiClient conClient)
{
string filePath = "Inputs/simple cleat connection.ideaCon";
await conClient.Project.OpenProjectAsync(filePath);
var connections = await conClient.Connection.GetConnectionsAsync(conClient.ActiveProjectId);
int connectionId = connections[0].Id;
var operations = await conClient.Operation.GetOperationsAsync(conClient.ActiveProjectId, connectionId);
Console.WriteLine($"Operations in connection '{connections[0].Name}' before delete: {operations.Count}");
//Delete all operations of the connection.
await conClient.Operation.DeleteOperationsAsync(conClient.ActiveProjectId, connectionId);
operations = await conClient.Operation.GetOperationsAsync(conClient.ActiveProjectId, connectionId);
Console.WriteLine($"Operations in connection '{connections[0].Name}' after delete: {operations.Count}");
string exampleFolder = GetExampleFolderPathOnDesktop("DeleteOperations");
string saveFilePath = Path.Combine(exampleFolder, "connection-without-operations.ideaCon");
//Save the modified project.
await conClient.Project.SaveProjectAsync(conClient.ActiveProjectId, saveFilePath);
Console.WriteLine("Project saved to: " + saveFilePath);
//Close the opened project.
await conClient.Project.CloseProjectAsync(conClient.ActiveProjectId);
}
}
}
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
DELETE /api/5/projects/{projectId}/connections/{connectionId}/operations
Using the DeleteOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Delete all operations for the connection.
conClient.Operation.DeleteOperationsWithHttpInfo(projectId, connectionId);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.DeleteOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAnchorGridOperationAsync
ConAnchorGridOperation GetAnchorGridOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Anchor Grid operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetAnchorGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Anchor Grid operation with the given id, with all fields populated.
ConAnchorGridOperation result = await conClient.Operation.GetAnchorGridOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetAnchorGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/anchor-grid/{operationId}
Using the GetAnchorGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Anchor Grid operation with the given id, with all fields populated.
ApiResponse<ConAnchorGridOperation> response = conClient.Operation.GetAnchorGridOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetAnchorGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetAnchorGridOperationsAsync
List<ConAnchorGridOperation> GetAnchorGridOperationsAsync (Guid projectId, int connectionId)
Returns all Anchor Grid operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetAnchorGridOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Anchor Grid operations in the connection.
List<ConAnchorGridOperation> result = await conClient.Operation.GetAnchorGridOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetAnchorGridOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/anchor-grid
Using the GetAnchorGridOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Anchor Grid operations in the connection.
ApiResponse<List<ConAnchorGridOperation>> response = conClient.Operation.GetAnchorGridOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetAnchorGridOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetBoltGridOperationAsync
ConBoltGridOperation GetBoltGridOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Bolt Grid operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetBoltGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Bolt Grid operation with the given id, with all fields populated.
ConBoltGridOperation result = await conClient.Operation.GetBoltGridOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetBoltGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/bolt-grid/{operationId}
Using the GetBoltGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Bolt Grid operation with the given id, with all fields populated.
ApiResponse<ConBoltGridOperation> response = conClient.Operation.GetBoltGridOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetBoltGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetBoltGridOperationsAsync
List<ConBoltGridOperation> GetBoltGridOperationsAsync (Guid projectId, int connectionId)
Returns all Bolt Grid operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetBoltGridOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Bolt Grid operations in the connection.
List<ConBoltGridOperation> result = await conClient.Operation.GetBoltGridOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetBoltGridOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/bolt-grid
Using the GetBoltGridOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Bolt Grid operations in the connection.
ApiResponse<List<ConBoltGridOperation>> response = conClient.Operation.GetBoltGridOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetBoltGridOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetCommonOperationPropertiesAsync
ConOperationCommonProperties GetCommonOperationPropertiesAsync (Guid projectId, int connectionId)
Gets common operation properties.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project. | |
| connectionId | int | The ID of the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetCommonOperationPropertiesAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Gets common operation properties.
ConOperationCommonProperties result = await conClient.Operation.GetCommonOperationPropertiesAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetCommonOperationPropertiesAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
using IdeaStatiCa.ConnectionApi;
using IdeaStatiCa.ConnectionApi.Model;
namespace CodeSamples
{
public partial class ClientExamples
{
/// <summary>
/// Gets the common operation properties (default weld material, plate material and bolt assembly) of a connection.
/// </summary>
/// <param name="conClient">The connected API Client</param>
public static async Task GetCommonOperationProperties(IConnectionApiClient conClient)
{
string filePath = "Inputs/simple cleat connection.ideaCon";
await conClient.Project.OpenProjectAsync(filePath);
var connections = await conClient.Connection.GetConnectionsAsync(conClient.ActiveProjectId);
int connectionId = connections[0].Id;
//Get the common properties which are shared by all operations of the connection.
//A null value means the project default is used.
ConOperationCommonProperties commonProperties = await conClient.Operation.GetCommonOperationPropertiesAsync(conClient.ActiveProjectId, connectionId);
Console.WriteLine($"Common operation properties of connection '{connections[0].Name}':");
Console.WriteLine($"Weld material Id: {commonProperties.WeldMaterialId?.ToString() ?? "project default"}");
Console.WriteLine($"Plate material Id: {commonProperties.PlateMaterialId?.ToString() ?? "project default"}");
Console.WriteLine($"Bolt assembly Id: {commonProperties.BoltAssemblyId?.ToString() ?? "project default"}");
//Close the opened project.
await conClient.Project.CloseProjectAsync(conClient.ActiveProjectId);
}
}
}
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/common-properties
Using the GetCommonOperationPropertiesWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Gets common operation properties.
ApiResponse<ConOperationCommonProperties> response = conClient.Operation.GetCommonOperationPropertiesWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetCommonOperationPropertiesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetContactGridOperationAsync
ConContactGridOperation GetContactGridOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Contact Grid operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetContactGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Contact Grid operation with the given id, with all fields populated.
ConContactGridOperation result = await conClient.Operation.GetContactGridOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetContactGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/contact-grid/{operationId}
Using the GetContactGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Contact Grid operation with the given id, with all fields populated.
ApiResponse<ConContactGridOperation> response = conClient.Operation.GetContactGridOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetContactGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetContactGridOperationsAsync
List<ConContactGridOperation> GetContactGridOperationsAsync (Guid projectId, int connectionId)
Returns all Contact Grid operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetContactGridOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Contact Grid operations in the connection.
List<ConContactGridOperation> result = await conClient.Operation.GetContactGridOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetContactGridOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/contact-grid
Using the GetContactGridOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Contact Grid operations in the connection.
ApiResponse<List<ConContactGridOperation>> response = conClient.Operation.GetContactGridOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetContactGridOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetContactOperationAsync
ConContactOperation GetContactOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Contact operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetContactOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Contact operation with the given id, with all fields populated.
ConContactOperation result = await conClient.Operation.GetContactOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetContactOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/contact/{operationId}
Using the GetContactOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Contact operation with the given id, with all fields populated.
ApiResponse<ConContactOperation> response = conClient.Operation.GetContactOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetContactOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetContactOperationsAsync
List<ConContactOperation> GetContactOperationsAsync (Guid projectId, int connectionId)
Returns all Contact operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetContactOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Contact operations in the connection.
List<ConContactOperation> result = await conClient.Operation.GetContactOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetContactOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/contact
Using the GetContactOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Contact operations in the connection.
ApiResponse<List<ConContactOperation>> response = conClient.Operation.GetContactOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetContactOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetCutOperationAsync
ConCutOperation GetCutOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Cut operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetCutOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Cut operation with the given id, with all fields populated.
ConCutOperation result = await conClient.Operation.GetCutOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetCutOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/cut/{operationId}
Using the GetCutOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Cut operation with the given id, with all fields populated.
ApiResponse<ConCutOperation> response = conClient.Operation.GetCutOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetCutOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetCutOperationsAsync
List<ConCutOperation> GetCutOperationsAsync (Guid projectId, int connectionId)
Returns all Cut operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetCutOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Cut operations in the connection.
List<ConCutOperation> result = await conClient.Operation.GetCutOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetCutOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/cut
Using the GetCutOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Cut operations in the connection.
ApiResponse<List<ConCutOperation>> response = conClient.Operation.GetCutOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetCutOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNegativeMemberOperationAsync
ConNegativeMemberOperation GetNegativeMemberOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Negative Member operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetNegativeMemberOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Negative Member operation with the given id, with all fields populated.
ConNegativeMemberOperation result = await conClient.Operation.GetNegativeMemberOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetNegativeMemberOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/negative-member/{operationId}
Using the GetNegativeMemberOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Negative Member operation with the given id, with all fields populated.
ApiResponse<ConNegativeMemberOperation> response = conClient.Operation.GetNegativeMemberOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetNegativeMemberOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNegativeMemberOperationsAsync
List<ConNegativeMemberOperation> GetNegativeMemberOperationsAsync (Guid projectId, int connectionId)
Returns all Negative Member operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
List<ConNegativeMemberOperation>
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetNegativeMemberOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Negative Member operations in the connection.
List<ConNegativeMemberOperation> result = await conClient.Operation.GetNegativeMemberOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetNegativeMemberOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/negative-member
Using the GetNegativeMemberOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Negative Member operations in the connection.
ApiResponse<List<ConNegativeMemberOperation>> response = conClient.Operation.GetNegativeMemberOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetNegativeMemberOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNegativePlateOperationAsync
ConNegativePlateOperation GetNegativePlateOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Negative Plate operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetNegativePlateOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Negative Plate operation with the given id, with all fields populated.
ConNegativePlateOperation result = await conClient.Operation.GetNegativePlateOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetNegativePlateOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/negative-plate/{operationId}
Using the GetNegativePlateOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Negative Plate operation with the given id, with all fields populated.
ApiResponse<ConNegativePlateOperation> response = conClient.Operation.GetNegativePlateOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetNegativePlateOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetNegativePlateOperationsAsync
List<ConNegativePlateOperation> GetNegativePlateOperationsAsync (Guid projectId, int connectionId)
Returns all Negative Plate operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
List<ConNegativePlateOperation>
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetNegativePlateOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Negative Plate operations in the connection.
List<ConNegativePlateOperation> result = await conClient.Operation.GetNegativePlateOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetNegativePlateOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/negative-plate
Using the GetNegativePlateOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Negative Plate operations in the connection.
ApiResponse<List<ConNegativePlateOperation>> response = conClient.Operation.GetNegativePlateOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetNegativePlateOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetOperationsAsync
List<ConOperation> GetOperationsAsync (Guid projectId, int connectionId)
Gets the list of operations for the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the requested connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the requested connection.
try
{
// Gets the list of operations for the connection.
List<ConOperation> result = await conClient.Operation.GetOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
using IdeaStatiCa.Api.Connection.Model;
using IdeaStatiCa.ConnectionApi;
namespace CodeSamples
{
public partial class ClientExamples
{
/// <summary>
/// Gets the list of manufacturing operations of a connection.
/// </summary>
/// <param name="conClient">The connected API Client</param>
public static async Task GetOperations(IConnectionApiClient conClient)
{
string filePath = "Inputs/simple cleat connection.ideaCon";
await conClient.Project.OpenProjectAsync(filePath);
var connections = await conClient.Connection.GetConnectionsAsync(conClient.ActiveProjectId);
int connectionId = connections[0].Id;
//Get the list of manufacturing operations defined in the connection.
List<ConOperation> operations = await conClient.Operation.GetOperationsAsync(conClient.ActiveProjectId, connectionId);
Console.WriteLine($"Connection '{connections[0].Name}' contains {operations.Count} operation(s):");
foreach (ConOperation operation in operations)
{
Console.WriteLine($"Id: {operation.Id} Name: {operation.Name} Type: {operation.OperationType} Active: {operation.Active}");
}
//Close the opened project.
await conClient.Project.CloseProjectAsync(conClient.ActiveProjectId);
}
}
}
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations
Using the GetOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Gets the list of operations for the connection.
ApiResponse<List<ConOperation>> response = conClient.Operation.GetOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPinGridOperationAsync
ConPinGridOperation GetPinGridOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Pin Grid operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetPinGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Pin Grid operation with the given id, with all fields populated.
ConPinGridOperation result = await conClient.Operation.GetPinGridOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetPinGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/pin-grid/{operationId}
Using the GetPinGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Pin Grid operation with the given id, with all fields populated.
ApiResponse<ConPinGridOperation> response = conClient.Operation.GetPinGridOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetPinGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPinGridOperationsAsync
List<ConPinGridOperation> GetPinGridOperationsAsync (Guid projectId, int connectionId)
Returns all Pin Grid operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetPinGridOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Pin Grid operations in the connection.
List<ConPinGridOperation> result = await conClient.Operation.GetPinGridOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetPinGridOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/pin-grid
Using the GetPinGridOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Pin Grid operations in the connection.
ApiResponse<List<ConPinGridOperation>> response = conClient.Operation.GetPinGridOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetPinGridOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPlateCutOperationAsync
ConPlateCutOperation GetPlateCutOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Plate Cut operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetPlateCutOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Plate Cut operation with the given id, with all fields populated.
ConPlateCutOperation result = await conClient.Operation.GetPlateCutOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetPlateCutOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/plate-cut/{operationId}
Using the GetPlateCutOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Plate Cut operation with the given id, with all fields populated.
ApiResponse<ConPlateCutOperation> response = conClient.Operation.GetPlateCutOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetPlateCutOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetPlateCutOperationsAsync
List<ConPlateCutOperation> GetPlateCutOperationsAsync (Guid projectId, int connectionId)
Returns all Plate Cut operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetPlateCutOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Plate Cut operations in the connection.
List<ConPlateCutOperation> result = await conClient.Operation.GetPlateCutOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetPlateCutOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/plate-cut
Using the GetPlateCutOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Plate Cut operations in the connection.
ApiResponse<List<ConPlateCutOperation>> response = conClient.Operation.GetPlateCutOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetPlateCutOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetStiffeningMemberOperationAsync
ConStiffeningMemberOperation GetStiffeningMemberOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Stiffening Member operation with the given id.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetStiffeningMemberOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Stiffening Member operation with the given id.
ConStiffeningMemberOperation result = await conClient.Operation.GetStiffeningMemberOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetStiffeningMemberOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/stiffening-member/{operationId}
Using the GetStiffeningMemberOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Stiffening Member operation with the given id.
ApiResponse<ConStiffeningMemberOperation> response = conClient.Operation.GetStiffeningMemberOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetStiffeningMemberOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetStiffeningMemberOperationsAsync
List<ConStiffeningMemberOperation> GetStiffeningMemberOperationsAsync (Guid projectId, int connectionId)
Returns all Stiffening Member operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
List<ConStiffeningMemberOperation>
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetStiffeningMemberOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Stiffening Member operations in the connection.
List<ConStiffeningMemberOperation> result = await conClient.Operation.GetStiffeningMemberOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetStiffeningMemberOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/stiffening-member
Using the GetStiffeningMemberOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Stiffening Member operations in the connection.
ApiResponse<List<ConStiffeningMemberOperation>> response = conClient.Operation.GetStiffeningMemberOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetStiffeningMemberOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetStiffeningPlateOperationAsync
ConStiffeningPlateOperation GetStiffeningPlateOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Stiffening Plate operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetStiffeningPlateOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Stiffening Plate operation with the given id, with all fields populated.
ConStiffeningPlateOperation result = await conClient.Operation.GetStiffeningPlateOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetStiffeningPlateOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/stiffening-plate/{operationId}
Using the GetStiffeningPlateOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Stiffening Plate operation with the given id, with all fields populated.
ApiResponse<ConStiffeningPlateOperation> response = conClient.Operation.GetStiffeningPlateOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetStiffeningPlateOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetStiffeningPlateOperationsAsync
List<ConStiffeningPlateOperation> GetStiffeningPlateOperationsAsync (Guid projectId, int connectionId)
Returns all Stiffening Plate operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
List<ConStiffeningPlateOperation>
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetStiffeningPlateOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Stiffening Plate operations in the connection.
List<ConStiffeningPlateOperation> result = await conClient.Operation.GetStiffeningPlateOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetStiffeningPlateOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/stiffening-plate
Using the GetStiffeningPlateOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Stiffening Plate operations in the connection.
ApiResponse<List<ConStiffeningPlateOperation>> response = conClient.Operation.GetStiffeningPlateOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetStiffeningPlateOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetWeldOperationAsync
ConWeldOperation GetWeldOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Weld operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetWeldOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Weld operation with the given id, with all fields populated.
ConWeldOperation result = await conClient.Operation.GetWeldOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetWeldOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/weld/{operationId}
Using the GetWeldOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Weld operation with the given id, with all fields populated.
ApiResponse<ConWeldOperation> response = conClient.Operation.GetWeldOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetWeldOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetWeldOperationsAsync
List<ConWeldOperation> GetWeldOperationsAsync (Guid projectId, int connectionId)
Returns all Weld operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetWeldOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Weld operations in the connection.
List<ConWeldOperation> result = await conClient.Operation.GetWeldOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetWeldOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/weld
Using the GetWeldOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Weld operations in the connection.
ApiResponse<List<ConWeldOperation>> response = conClient.Operation.GetWeldOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetWeldOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetWorkPlaneOperationAsync
ConWorkPlaneOperation GetWorkPlaneOperationAsync (Guid projectId, int connectionId, int operationId)
Returns the Work Plane operation with the given id, with all fields populated.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection containing the operation. | |
| operationId | int | The ID of the operation in the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetWorkPlaneOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection containing the operation.
operationId = 56; // int | The ID of the operation in the connection.
try
{
// Returns the Work Plane operation with the given id, with all fields populated.
ConWorkPlaneOperation result = await conClient.Operation.GetWorkPlaneOperationAsync(projectId, connectionId, operationId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetWorkPlaneOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/work-plane/{operationId}
Using the GetWorkPlaneOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns the Work Plane operation with the given id, with all fields populated.
ApiResponse<ConWorkPlaneOperation> response = conClient.Operation.GetWorkPlaneOperationWithHttpInfo(projectId, connectionId, operationId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetWorkPlaneOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetWorkPlaneOperationsAsync
List<ConWorkPlaneOperation> GetWorkPlaneOperationsAsync (Guid projectId, int connectionId)
Returns all Work Plane operations in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class GetWorkPlaneOperationsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
try
{
// Returns all Work Plane operations in the connection.
List<ConWorkPlaneOperation> result = await conClient.Operation.GetWorkPlaneOperationsAsync(projectId, connectionId);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.GetWorkPlaneOperationsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
GET /api/5/projects/{projectId}/connections/{connectionId}/operations/work-plane
Using the GetWorkPlaneOperationsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Returns all Work Plane operations in the connection.
ApiResponse<List<ConWorkPlaneOperation>> response = conClient.Operation.GetWorkPlaneOperationsWithHttpInfo(projectId, connectionId);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.GetWorkPlaneOperationsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PreDesignWeldsAsync
string PreDesignWeldsAsync (Guid projectId, int connectionId, ConWeldSizingMethodEnum? designType = null)
Pre-designs welds in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project. | |
| connectionId | int | The ID of the connection. | |
| designType | ConWeldSizingMethodEnum? | The weld sizing method to apply (default is FullStrength). | [optional] |
Return type
string
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class PreDesignWeldsAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
designType = (ConWeldSizingMethodEnum) "fullStrength"; // ConWeldSizingMethodEnum? | The weld sizing method to apply (default is FullStrength). (optional)
try
{
// Pre-designs welds in the connection.
string result = await conClient.Operation.PreDesignWeldsAsync(projectId, connectionId, designType);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.PreDesignWeldsAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
using IdeaStatiCa.Api.Connection.Model.Connection;
using IdeaStatiCa.ConnectionApi;
namespace CodeSamples
{
public partial class ClientExamples
{
/// <summary>
/// Pre-designs the sizes of all welds in a connection using a selected weld sizing method.
/// </summary>
/// <param name="conClient">The connected API Client</param>
public static async Task PreDesignWelds(IConnectionApiClient conClient)
{
string filePath = "Inputs/simple knee connection.ideaCon";
await conClient.Project.OpenProjectAsync(filePath);
var connections = await conClient.Connection.GetConnectionsAsync(conClient.ActiveProjectId);
int connectionId = connections[0].Id;
//Pre-design all welds in the connection.
//Available sizing methods: FullStrength, MinimumDuctility, OverStrengthFactor, CapacityEstimation.
string result = await conClient.Operation.PreDesignWeldsAsync(conClient.ActiveProjectId, connectionId, ConWeldSizingMethodEnum.FullStrength);
Console.WriteLine($"Weld pre-design of connection '{connections[0].Name}' finished: {result}");
string exampleFolder = GetExampleFolderPathOnDesktop("PreDesignWelds");
string saveFilePath = Path.Combine(exampleFolder, "knee-connection-predesigned-welds.ideaCon");
//Save the project with the re-sized welds.
await conClient.Project.SaveProjectAsync(conClient.ActiveProjectId, saveFilePath);
Console.WriteLine("Project saved to: " + saveFilePath);
//Close the opened project.
await conClient.Project.CloseProjectAsync(conClient.ActiveProjectId);
}
}
}
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
POST /api/5/projects/{projectId}/connections/{connectionId}/operations/weld-sizing
Using the PreDesignWeldsWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Pre-designs welds in the connection.
ApiResponse<string> response = conClient.Operation.PreDesignWeldsWithHttpInfo(projectId, connectionId, designType);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.PreDesignWeldsWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
| 501 | Not Implemented | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateAnchorGridOperationAsync
ConAddOperationResult UpdateAnchorGridOperationAsync (Guid projectId, int connectionId, ConAnchorGridOperation conAnchorGridOperation = null)
Replaces an Anchor Grid operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conAnchorGridOperation | ConAnchorGridOperation | The anchor grid data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateAnchorGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conAnchorGridOperation = new ConAnchorGridOperation(); // ConAnchorGridOperation | The anchor grid data to apply. (optional)
try
{
// Replaces an Anchor Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateAnchorGridOperationAsync(projectId, connectionId, conAnchorGridOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateAnchorGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/anchor-grid
Using the UpdateAnchorGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces an Anchor Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateAnchorGridOperationWithHttpInfo(projectId, connectionId, conAnchorGridOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateAnchorGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateBoltGridOperationAsync
ConAddOperationResult UpdateBoltGridOperationAsync (Guid projectId, int connectionId, ConBoltGridOperation conBoltGridOperation = null)
Replaces a Bolt Grid operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conBoltGridOperation | ConBoltGridOperation | The bolt grid data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateBoltGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conBoltGridOperation = new ConBoltGridOperation(); // ConBoltGridOperation | The bolt grid data to apply. (optional)
try
{
// Replaces a Bolt Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateBoltGridOperationAsync(projectId, connectionId, conBoltGridOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateBoltGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/bolt-grid
Using the UpdateBoltGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Bolt Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateBoltGridOperationWithHttpInfo(projectId, connectionId, conBoltGridOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateBoltGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateCommonOperationPropertiesAsync
void UpdateCommonOperationPropertiesAsync (Guid projectId, int connectionId, ConOperationCommonProperties conOperationCommonProperties = null)
Updates common properties for all operations.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project. | |
| connectionId | int | The ID of the connection. | |
| conOperationCommonProperties | ConOperationCommonProperties | Common properties to apply (specify material IDs, or keep as null). | [optional] |
Return type
void (empty response body)
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateCommonOperationPropertiesAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conOperationCommonProperties = new ConOperationCommonProperties(); // ConOperationCommonProperties | Common properties to apply (specify material IDs, or keep as null). (optional)
try
{
// Updates common properties for all operations.
conClient.Operation.UpdateCommonOperationPropertiesAsync(projectId, connectionId, conOperationCommonProperties);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateCommonOperationPropertiesAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
using IdeaRS.OpenModel.Material;
using IdeaStatiCa.ConnectionApi;
using IdeaStatiCa.ConnectionApi.Model;
namespace CodeSamples
{
public partial class ClientExamples
{
/// <summary>
/// Updates the common operation properties (default bolt assembly) for all operations of a connection.
/// </summary>
/// <param name="conClient">The connected API Client</param>
public static async Task UpdateCommonOperationProperties(IConnectionApiClient conClient)
{
string filePath = "Inputs/simple cleat connection.ideaCon";
await conClient.Project.OpenProjectAsync(filePath);
var connections = await conClient.Connection.GetConnectionsAsync(conClient.ActiveProjectId);
int connectionId = connections[0].Id;
//Pick a bolt assembly from the project to be set as the default for all operations.
List<BoltAssembly> boltAssemblies = (await conClient.Material.GetBoltAssembliesAsync(conClient.ActiveProjectId)).Cast<BoltAssembly>().ToList();
BoltAssembly newDefaultBoltAssembly = boltAssemblies.Last();
Console.WriteLine($"New default bolt assembly: Id: {newDefaultBoltAssembly.Id} Name: {newDefaultBoltAssembly.Name}");
//Update the common properties of all operations of the connection.
//Properties which are left null (here weld and plate material) remain unchanged.
ConOperationCommonProperties commonProperties = new ConOperationCommonProperties();
commonProperties.BoltAssemblyId = newDefaultBoltAssembly.Id;
await conClient.Operation.UpdateCommonOperationPropertiesAsync(conClient.ActiveProjectId, connectionId, commonProperties);
//Read the common properties back to verify the update.
ConOperationCommonProperties updatedProperties = await conClient.Operation.GetCommonOperationPropertiesAsync(conClient.ActiveProjectId, connectionId);
Console.WriteLine($"Bolt assembly Id after update: {updatedProperties.BoltAssemblyId}");
//Close the opened project.
await conClient.Project.CloseProjectAsync(conClient.ActiveProjectId);
}
}
}
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/common-properties
Using the UpdateCommonOperationPropertiesWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Updates common properties for all operations.
conClient.Operation.UpdateCommonOperationPropertiesWithHttpInfo(projectId, connectionId, conOperationCommonProperties);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateCommonOperationPropertiesWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 204 | No Content | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateContactGridOperationAsync
ConAddOperationResult UpdateContactGridOperationAsync (Guid projectId, int connectionId, ConContactGridOperation conContactGridOperation = null)
Replaces a Contact Grid operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conContactGridOperation | ConContactGridOperation | The contact grid data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateContactGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conContactGridOperation = new ConContactGridOperation(); // ConContactGridOperation | The contact grid data to apply. (optional)
try
{
// Replaces a Contact Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateContactGridOperationAsync(projectId, connectionId, conContactGridOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateContactGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/contact-grid
Using the UpdateContactGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Contact Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateContactGridOperationWithHttpInfo(projectId, connectionId, conContactGridOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateContactGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateContactOperationAsync
ConAddOperationResult UpdateContactOperationAsync (Guid projectId, int connectionId, ConContactOperation conContactOperation = null)
Replaces a Contact operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conContactOperation | ConContactOperation | The contact data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateContactOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conContactOperation = new ConContactOperation(); // ConContactOperation | The contact data to apply. (optional)
try
{
// Replaces a Contact operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateContactOperationAsync(projectId, connectionId, conContactOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateContactOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/contact
Using the UpdateContactOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Contact operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateContactOperationWithHttpInfo(projectId, connectionId, conContactOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateContactOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateCutOperationAsync
ConAddOperationResult UpdateCutOperationAsync (Guid projectId, int connectionId, ConCutOperation conCutOperation = null)
Replaces a Cut operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conCutOperation | ConCutOperation | The cut data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateCutOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conCutOperation = new ConCutOperation(); // ConCutOperation | The cut data to apply. (optional)
try
{
// Replaces a Cut operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateCutOperationAsync(projectId, connectionId, conCutOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateCutOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/cut
Using the UpdateCutOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Cut operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateCutOperationWithHttpInfo(projectId, connectionId, conCutOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateCutOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateNegativeMemberOperationAsync
ConAddOperationResult UpdateNegativeMemberOperationAsync (Guid projectId, int connectionId, ConNegativeMemberOperation conNegativeMemberOperation = null)
Replaces a Negative Member operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conNegativeMemberOperation | ConNegativeMemberOperation | The negative member data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateNegativeMemberOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conNegativeMemberOperation = new ConNegativeMemberOperation(); // ConNegativeMemberOperation | The negative member data to apply. (optional)
try
{
// Replaces a Negative Member operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateNegativeMemberOperationAsync(projectId, connectionId, conNegativeMemberOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateNegativeMemberOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/negative-member
Using the UpdateNegativeMemberOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Negative Member operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateNegativeMemberOperationWithHttpInfo(projectId, connectionId, conNegativeMemberOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateNegativeMemberOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateNegativePlateOperationAsync
ConAddOperationResult UpdateNegativePlateOperationAsync (Guid projectId, int connectionId, ConNegativePlateOperation conNegativePlateOperation = null)
Replaces a Negative Plate operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conNegativePlateOperation | ConNegativePlateOperation | The negative plate data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateNegativePlateOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conNegativePlateOperation = new ConNegativePlateOperation(); // ConNegativePlateOperation | The negative plate data to apply. (optional)
try
{
// Replaces a Negative Plate operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateNegativePlateOperationAsync(projectId, connectionId, conNegativePlateOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateNegativePlateOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/negative-plate
Using the UpdateNegativePlateOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Negative Plate operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateNegativePlateOperationWithHttpInfo(projectId, connectionId, conNegativePlateOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateNegativePlateOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdatePinGridOperationAsync
ConAddOperationResult UpdatePinGridOperationAsync (Guid projectId, int connectionId, ConPinGridOperation conPinGridOperation = null)
Replaces a Pin Grid operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conPinGridOperation | ConPinGridOperation | The pin grid data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdatePinGridOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conPinGridOperation = new ConPinGridOperation(); // ConPinGridOperation | The pin grid data to apply. (optional)
try
{
// Replaces a Pin Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdatePinGridOperationAsync(projectId, connectionId, conPinGridOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdatePinGridOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/pin-grid
Using the UpdatePinGridOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Pin Grid operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdatePinGridOperationWithHttpInfo(projectId, connectionId, conPinGridOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdatePinGridOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdatePlateCutOperationAsync
ConAddOperationResult UpdatePlateCutOperationAsync (Guid projectId, int connectionId, ConPlateCutOperation conPlateCutOperation = null)
Replaces a Plate Cut operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conPlateCutOperation | ConPlateCutOperation | The plate cut data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdatePlateCutOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conPlateCutOperation = new ConPlateCutOperation(); // ConPlateCutOperation | The plate cut data to apply. (optional)
try
{
// Replaces a Plate Cut operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdatePlateCutOperationAsync(projectId, connectionId, conPlateCutOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdatePlateCutOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/plate-cut
Using the UpdatePlateCutOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Plate Cut operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdatePlateCutOperationWithHttpInfo(projectId, connectionId, conPlateCutOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdatePlateCutOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateStiffeningMemberOperationAsync
ConAddOperationResult UpdateStiffeningMemberOperationAsync (Guid projectId, int connectionId, ConStiffeningMemberOperation conStiffeningMemberOperation = null)
Replaces a Stiffening Member operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conStiffeningMemberOperation | ConStiffeningMemberOperation | The stiffening member data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateStiffeningMemberOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conStiffeningMemberOperation = new ConStiffeningMemberOperation(); // ConStiffeningMemberOperation | The stiffening member data to apply. (optional)
try
{
// Replaces a Stiffening Member operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateStiffeningMemberOperationAsync(projectId, connectionId, conStiffeningMemberOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateStiffeningMemberOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/stiffening-member
Using the UpdateStiffeningMemberOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Stiffening Member operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateStiffeningMemberOperationWithHttpInfo(projectId, connectionId, conStiffeningMemberOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateStiffeningMemberOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateStiffeningPlateOperationAsync
ConAddOperationResult UpdateStiffeningPlateOperationAsync (Guid projectId, int connectionId, ConStiffeningPlateOperation conStiffeningPlateOperation = null)
Replaces a Stiffening Plate operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conStiffeningPlateOperation | ConStiffeningPlateOperation | The stiffening plate data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateStiffeningPlateOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conStiffeningPlateOperation = new ConStiffeningPlateOperation(); // ConStiffeningPlateOperation | The stiffening plate data to apply. (optional)
try
{
// Replaces a Stiffening Plate operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateStiffeningPlateOperationAsync(projectId, connectionId, conStiffeningPlateOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateStiffeningPlateOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/stiffening-plate
Using the UpdateStiffeningPlateOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Stiffening Plate operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateStiffeningPlateOperationWithHttpInfo(projectId, connectionId, conStiffeningPlateOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateStiffeningPlateOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateWeldOperationAsync
ConAddOperationResult UpdateWeldOperationAsync (Guid projectId, int connectionId, ConWeldOperation conWeldOperation = null)
Replaces a Weld operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conWeldOperation | ConWeldOperation | The weld data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateWeldOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conWeldOperation = new ConWeldOperation(); // ConWeldOperation | The weld data to apply. (optional)
try
{
// Replaces a Weld operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateWeldOperationAsync(projectId, connectionId, conWeldOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateWeldOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/weld
Using the UpdateWeldOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Weld operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateWeldOperationWithHttpInfo(projectId, connectionId, conWeldOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateWeldOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateWorkPlaneOperationAsync
ConAddOperationResult UpdateWorkPlaneOperationAsync (Guid projectId, int connectionId, ConWorkPlaneOperation conWorkPlaneOperation = null)
Replaces a Work Plane operation (PUT semantics). Target id is taken from request.Id; returns 404 when no operation with that id exists in the connection.
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | Guid | The unique identifier of the opened project in the ConnectionRestApi service. | |
| connectionId | int | The ID of the connection. | |
| conWorkPlaneOperation | ConWorkPlaneOperation | The work plane data to apply. | [optional] |
Return type
Example
Note: this example is autogenerated.
using System;
using System.Collections.Generic;
using System.Diagnostics;
using IdeaStatiCa.ConnectionApi.Api;
using IdeaStatiCa.ConnectionApi.Client;
using IdeaStatiCa.ConnectionApi.Model;
namespace Example
{
public class UpdateWorkPlaneOperationAsyncExample
{
public static async Task Main()
{
string ideaConFile = "testCon.ideaCon";
string ideaStatiCaPath = "C:\\Program Files\\IDEA StatiCa\\StatiCa 26.0"; // Path to the IdeaStatiCa.ConnectionRestApi.exe
using (var clientFactory = new ConnectionApiServiceRunner(ideaStatiCaPath))
{
using (var conClient = await clientFactory.CreateApiClient())
{
// Open the project and get its id
var projData = await conClient.Project.OpenProjectAsync(ideaConFile);
Guid projectId = projData.ProjectId;
// (Required) Select parameters
connectionId = 56; // int | The ID of the connection.
var conWorkPlaneOperation = new ConWorkPlaneOperation(); // ConWorkPlaneOperation | The work plane data to apply. (optional)
try
{
// Replaces a Work Plane operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ConAddOperationResult result = await conClient.Operation.UpdateWorkPlaneOperationAsync(projectId, connectionId, conWorkPlaneOperation);
Debug.WriteLine(result);
}
catch (ApiException e)
{
Console.WriteLine("Exception when calling Operation.UpdateWorkPlaneOperationAsync: " + e.Message);
Console.WriteLine("Status Code: " + e.ErrorCode);
Console.WriteLine(e.StackTrace);
}
finally
{
await conClient.Project.CloseProjectAsync(projectId);
}
}
}
}
}
}
Code Samples
It looks like the sample you are looking for does not exist.
Looking for a code sample? request some help on our discussion page.
REST Usage
Http Request
All URIs are relative to http://localhost
PUT /api/5/projects/{projectId}/connections/{connectionId}/operations/work-plane
Using the UpdateWorkPlaneOperationWithHttpInfo variant
This returns an ApiResponse object which contains the response data, status code and headers.
try
{
// Replaces a Work Plane operation (PUT semantics). Target id is taken from `request.Id`; returns 404 when no operation with that id exists in the connection.
ApiResponse<ConAddOperationResult> response = conClient.Operation.UpdateWorkPlaneOperationWithHttpInfo(projectId, connectionId, conWorkPlaneOperation);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
}
catch (ApiException e)
{
Debug.Print("Exception when calling OperationApi.UpdateWorkPlaneOperationWithHttpInfo: " + e.Message);
Debug.Print("Status Code: " + e.ErrorCode);
Debug.Print(e.StackTrace);
}
Authorization
No authorization required
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | OK | - |
| 401 | Unauthorized | - |
| 404 | Not Found | - |
| 422 | Unprocessable Content | - |
| 500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]