Table of Contents

RCS API Client Basics

Once you have installed the RCS API client follow the below to understand the basics of the API.

Simple examples for both python and charp can be found at the links below: .Net (csharp) Python

When creating an application, the basic steps are as follows.

  1. Initializing the API client - start the communication with RCS.
  2. Open and existing or create a new RCS project.
  3. Performing possible operations on the loaded project using the API.
  4. Cleaning or disposing of the API client.

Initializing the Client

To start we first need to establish an API client which we can use to interact with RCS.

The RcsClientFactory can provide us with a client which are linked to the selected installed version of IDEA StatiCa.

Warning

It looks like the sample you are looking for does not exist.

The code above uses using statements which will automatically dispose the client once you have finished performing operations. Alternatively you can dispose of the client manually by calling client.dispose().

We can now used the active client to interact with RCS Application.

Open an RCS project

Once the connection with RCS is established we need to first open or create an RCS project (.ideaRcs).

Open existing project

In most cases will want to open an existing project that is avaliable on our computer.

Warning

It looks like the sample you are looking for does not exist.

Create project from IOM

We can also Create a new RCS Project. To create a new RCS project file, we will need to define the RCS Model using IDEA Open Model(IOM). See here for examples of creating IDEA Open Model for RCS can be found.

Note

There is not currently a way to create projects from scratch without first defining an IOM Model.

When creating a project from IOM, we can choose to create directly from a OpenModel class in memory:

Warning

It looks like the sample you are looking for does not exist.

or from a previously saved IOM.xml filepath.

Warning

It looks like the sample you are looking for does not exist.

Important

If the project was generated from an IOM file or IOM Model then the SaveProject command will need to be called to save the generated RCS project to disk.

API Operations

Once a project is open the client can work with it using the avaliable methods avaliable in the API.

Calculating Project Sections

Once a project is active it can be calculated. We can simply call the Calculate command. We can select which sections to calculate through the CalculationParameters all the sections avaliable in the project. By default all sections will be calculated.

Once the calcualtion has been performed, results are stored for retrieval at a later time. Brief results are provided as a response from the Calculate call, this is to allow the user to get a quick understanding on whether the calculation for each section has been succesful without having to retrieve more detailed results.

Warning

It looks like the sample you are looking for does not exist.

Getting Section Results

After sections have been calcuated we can retrieve more detailed results for all or only particular sections.

Warning

It looks like the sample you are looking for does not exist.

Saving the Project

Any modification that we perform on the project using the API are cached (temporaily saved).

If we have performed modifications that we want to save back to our local file, we will need to call the SaveProject command.

Warning

It looks like the sample you are looking for does not exist.

Tip

Looking for a code sample? Please post a question on our discussion forum.