ReliaSoft API Reference: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
(First phase of changes. More edits will be made as the reference docs come together.)
Line 1: Line 1:
{{Template:API|Version 9}}  
{{Template:API}}  


The  ReliaSoft Synthesis API enables you to programmatically read and write data in Synthesis desktop applications. The API has been developed for Visual Basic for Applications (VBA) and Visual Basic.NET. This gives you the ability to create automated solutions using popular Microsoft Office applications, such as Excel and PowerPoint, as well as create custom applications for your organization.
== Requirements  ==
Before using the Synthesis API, note the following requirements:
*You must reference the required Synthesis API library in your .NET project or VBA file. The library is located in the folder where the Synthesis applications are installed. By default, this folder is at C:\Program Files\ReliaSoft\Synthesis 10" (for Version 9, it is "C:\Program Files\ReliaSoft\Synthesis 9").
:*For VBA developers, use the SynthesisAPI.tlb library
:*For .NET developers, use the SynthesisAPI.dll library
*The version of the Synthesis Platform that you've installed (32- vs. 64-bit) must match your installed version of Microsoft Office. If they do not match, you may see an error related to ActiveX controls. (See [http://www.reliasoft.com/support/rs20024.htm ReliaSoft KB article RS20024].)
==Examples==
Sample applications that you can test and tweak yourself are shipped by default with every Synthesis desktop application. They are available for Excel, PowerPoint and Visual Basic projects. The files are stored on your computer at C:\Users\Public\Public Documents\ReliaSoft\Examples10\API. (For Version 9, see C:\Users\Public\Public Documents\ReliaSoft\Examples\API.)
==API Reference Documentation==
This documentation is organized by object type. For an alphabetical listing of all classes and enumerations, see [[Full Synthesis API]].
*The [[Repository_Class|Repository]] object represents a connection to a Synthesis repository. You will need to establish a connection to a Synthesis repository before you can read and/or write data to it. Once you have a connection, you can use the methods in the Repository class to update Synthesis resources, import or export data from XML files, or transfer data to the Synthesis Data Warehouse (SDW).
*The following objects represent a type of Synthesis resource.
**[[cModel Class|cModel]]
**[[cAction Class|cAction]]
**[[cURD Class|cURD]]
**[[cVariable Class|cVariable]]
**[[cCrew Class|cCrew]]
**[[cPool Class|cPool]]
**[[cCorrectiveTask Class|cCorrectiveTask]]
**[[cScheduledTask Class|cScheduledTask]]
<!--
*The following objects represent a type of analysis or folio. You would use these objects to perform analyses on external data sources; hence, a connection to a Synthesis repository is not required.
**WeibullDataSet
**ALTADataSet
**WAPlots
-->
To specify the displayed language for the Synthesis API library, use the [[Common_Class|SynthesisAPI.SetLanguage]] common class method.
<!--
The Synthesis API can be used to accomplish many of the same tasks as within Synthesis applications, and it also enables seamless integration of the Synthesis Platform with other systems within your organization—all through a programmer's own custom-developed code. This allows you to create customizable and automated solutions to reliability engineering problems by integrating Synthesis functionality into other applications.  
The Synthesis API can be used to accomplish many of the same tasks as within Synthesis applications, and it also enables seamless integration of the Synthesis Platform with other systems within your organization—all through a programmer's own custom-developed code. This allows you to create customizable and automated solutions to reliability engineering problems by integrating Synthesis functionality into other applications.  


Line 42: Line 80:
*Use Excel to update Universal Reliability Definitions (URDs) used in BlockSim, etc.  
*Use Excel to update Universal Reliability Definitions (URDs) used in BlockSim, etc.  
**[http://www.reliasoft.com/synthesis/api/examples/URDExample_V10.xlsm Update URDs with Excel (108 KB)]
**[http://www.reliasoft.com/synthesis/api/examples/URDExample_V10.xlsm Update URDs with Excel (108 KB)]
-->

Revision as of 18:58, 7 July 2015

APIWiki.png



The ReliaSoft Synthesis API enables you to programmatically read and write data in Synthesis desktop applications. The API has been developed for Visual Basic for Applications (VBA) and Visual Basic.NET. This gives you the ability to create automated solutions using popular Microsoft Office applications, such as Excel and PowerPoint, as well as create custom applications for your organization.

Requirements

Before using the Synthesis API, note the following requirements:

  • You must reference the required Synthesis API library in your .NET project or VBA file. The library is located in the folder where the Synthesis applications are installed. By default, this folder is at C:\Program Files\ReliaSoft\Synthesis 10" (for Version 9, it is "C:\Program Files\ReliaSoft\Synthesis 9").
  • For VBA developers, use the SynthesisAPI.tlb library
  • For .NET developers, use the SynthesisAPI.dll library
  • The version of the Synthesis Platform that you've installed (32- vs. 64-bit) must match your installed version of Microsoft Office. If they do not match, you may see an error related to ActiveX controls. (See ReliaSoft KB article RS20024.)

Examples

Sample applications that you can test and tweak yourself are shipped by default with every Synthesis desktop application. They are available for Excel, PowerPoint and Visual Basic projects. The files are stored on your computer at C:\Users\Public\Public Documents\ReliaSoft\Examples10\API. (For Version 9, see C:\Users\Public\Public Documents\ReliaSoft\Examples\API.)

API Reference Documentation

This documentation is organized by object type. For an alphabetical listing of all classes and enumerations, see Full Synthesis API.

  • The Repository object represents a connection to a Synthesis repository. You will need to establish a connection to a Synthesis repository before you can read and/or write data to it. Once you have a connection, you can use the methods in the Repository class to update Synthesis resources, import or export data from XML files, or transfer data to the Synthesis Data Warehouse (SDW).

To specify the displayed language for the Synthesis API library, use the SynthesisAPI.SetLanguage common class method.