API Tutorials: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(27 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:InProgress}}{{Template:API}}
{{Template:API}}
{{Template:BacktoPrevPage|[[Synthesis API Reference|<< Back to API Main Page]]}}


Below are simple tutorials to help you get started with using the Synthesis API. Before you begin:
Below are simple tutorials to help you get started with using the Synthesis API. The tutorials assume some basic working knowledge in VBA or .NET programming, and general familiarity with Synthesis applications.  
*Be sure to complete all requirements described in the Getting Started section of the [[Synthesis API Reference]] page.


*Create a Synthesis repository for testing purposes. We recommend creating a new standard repository and saving it on your local drive when working with the tutorials. This will allow you to work and experiment with the examples unhindered by folder and database permissions.
*Display the object IDs in Synthesis applications. Each item in a Synthesis repository is identified by a unique record identifier called an ''object ID''. Object IDs can help you trace responses from the API, which is helpful when you're just beginning to learn. We recommend reading [[Using Object IDs|this short topic]] on object IDs before you begin.
Finally, the tutorials assume some basic working knowledge in VBA or VB.NET programming, and general familiarity with the Synthesis Platform.


==Referencing the Synthesis API Library File==
{{:Synthesis API Reference}}
==Tutorials==
==Tutorials==
Before you begin, be sure to review the [[Synthesis_API_Reference|prerequisites]] presented in the overview page. The tutorials are designed to work with the latest version of the Synthesis applications.


===Basics===
====Basics====
The following tutorials introduce you to the basic functionalities of the Synthesis API.
*[[Connect or Disconnect from a Synthesis Repository]]
 
*[[Add New Synthesis Resources to a Repository]]
* Connect to and disconnect from a Synthesis repository.
*[[Edit Existing Synthesis Resources]]
 
*[[Calculate Results from a Model]]
* Add new Synthesis resources to a repository.
 
* Edit existing Synthesis resources in a repository.
 
* Calculate results from a model.
 
===Application Examples===
 
* Transfer data from an Excel file to the Synthesis Data Warehouse (SDW).
 
 
 


====Importing Data====
*[[Transfer Data to the Synthesis Data Warehouse (SDW)]]


''<span style="font-size:12pt; color:#808080;">More tutorials coming soon...</span>''
====Performing Analyses and Creating Plots <span style="color:#585858">(requires a Synthesis API license)</span>====
*[[Perform Life Data Analysis on External Data Source|Perform Life Data Analysis]]
*[[Perform Accelerated Life Testing Data Analysis on External Data Source|Perform Accelerated Life Testing Data Analysis]]
*[[Perform Accelerated Life Testing Data Analysis with Stress Profiles]] (Click [[Perform Accelerated Life Testing Data Analysis with Stress Profiles 10|here]] for Version 10 of this tutorial.)
*[[Create Plots]]

Latest revision as of 23:29, 2 August 2017

APIWiki.png


<< Back to API Main Page

Below are simple tutorials to help you get started with using the Synthesis API. The tutorials assume some basic working knowledge in VBA or .NET programming, and general familiarity with Synthesis applications.


Referencing the Synthesis API Library File

To use the ReliaSoft API in your code, you must reference the ReliaSoft API library in your VBA or .NET projects. The file is located in the folder where the ReliaSoft desktop applications are installed. By default for Version 2023, this folder is at "C:\Program Files\ReliaSoft\ReliaSoft 2023." For VBA, you will use the ReliaSoftAPI23.tlb file; for .NET applications, you will use the ReliaSoftAPI23.dll file.

To reference the library in VBA:

  1. Enter the VBA environment by clicking the Visual Basic command on the Developer tab (If the Developer tab is not visible, see this Microsoft article).
  2. In the VBA environment, choose Tools > References.
  3. Click Browse and find the ReliaSoftAPI23.tlb file on your computer. Click OK.

To reference the library in Visual Studio:

  1. In the Solution Explorer, right-click the References node of your project and choose Add References.
  2. In the Reference Manager window, click the Browse tab and find the ReliaSoftAPI23.dll file on your computer. Click OK.
  3. Edit your project file, either directly using any text editor, or by right-clicking your project and choosing Unload Project, then right-clicking your project again and choosing Edit Project File
  4. Insert the following line just before the last </Project> clause (change the path if necessary):
<Import Project="C:\Program Files\ReliaSoft\ReliaSoft 2023\ReliaSoftAPI.targets" />
This will ensure the required files are copied into your project’s destination folder during the build.
  1. Save the project file. If you unloaded the project in step 3, right-click the project and choose Reload Project.

Tutorials

Before you begin, be sure to review the prerequisites presented in the overview page. The tutorials are designed to work with the latest version of the Synthesis applications.

Basics

Importing Data

Performing Analyses and Creating Plots (requires a Synthesis API license)