RawDataSet Class: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
Line 14: Line 14:
*ExtractedType    (as ''[[AnalyticalDataSetType Enumeration|AnalyticalDataSetType]]'') {{APIComment|Gets or sets whether the data set is for use with Weibull++ or RGA.}}
*ExtractedType    (as ''[[AnalyticalDataSetType Enumeration|AnalyticalDataSetType]]'') {{APIComment|Gets or sets whether the data set is for use with Weibull++ or RGA.}}


== Examples ==
== Usage Example ==
Full application examples are available at [[Synthesis_API_Reference#Application_Examples]].
This usage example demonstrates how to create a simple raw data set and add it to a repository's Reliability Data Warehouse (RDW). Full application examples are available at [[Synthesis_API_Reference#Application_Examples]].
 
{{APIComment|'Create a new RawDataSet object. See [[RawDataSet Class|RawDataSet]].}}
  Dim RDW As New RawDataSet
 
{{APIComment|'Create a new RawData object, and specify a part name and number. See [[RawData Class|RawData]].}}
  Dim row1 As New RawData
  row1.PartName = "Frame"
  row1.PartNumber = "FRM"
 
{{APIComment|'Add a row to RawDataSet object with the specified part name and number.}}
  RDW.AddDataRow(row1)
 
{{APIComment|'Connect to a Synthesis repository.}}
  Dim MyRepository As New Repository 
  MyRepository.ConnectToRepository("C:\Users\Name\Documents\ReliaSoft\Files\database.rsr9")
   
{{APIComment|'Add the raw data to the Raw Data Warehouse in the repository.}}
  MyRepository.SaveRawDataSet(RDW)
 
{{APIComment|'Disconnect from repository.}}
  MyRepository.DisconnectFromRepository()

Revision as of 17:50, 6 May 2014


To view an added data set in Weibull++ or RGA, choose Project > Synthesis > RDW to Folio.

Methods

Properties

  • ExtractedName (as string) Gets or sets the name of the data set.
  • ExtractedDate (as date) Gets or sets the date when the data set was extracted.
  • ExtractedBy (as string) Gets or sets the name of the person who extracted the data set.
  • ExtractedType (as AnalyticalDataSetType) Gets or sets whether the data set is for use with Weibull++ or RGA.

Usage Example

This usage example demonstrates how to create a simple raw data set and add it to a repository's Reliability Data Warehouse (RDW). Full application examples are available at Synthesis_API_Reference#Application_Examples.

 'Create a new RawDataSet object. See RawDataSet. 
 Dim RDW As New RawDataSet
 
 'Create a new RawData object, and specify a part name and number. See RawData. 
 Dim row1 As New RawData
 row1.PartName = "Frame"
 row1.PartNumber = "FRM"
 
 'Add a row to RawDataSet object with the specified part name and number. 
 RDW.AddDataRow(row1)
 'Connect to a Synthesis repository. 
 Dim MyRepository As New Repository  
 MyRepository.ConnectToRepository("C:\Users\Name\Documents\ReliaSoft\Files\database.rsr9")
   
 'Add the raw data to the Raw Data Warehouse in the repository. 
 MyRepository.SaveRawDataSet(RDW)
 'Disconnect from repository. 
 MyRepository.DisconnectFromRepository()