RawDataSet Class: Difference between revisions
Jump to navigation
Jump to search
Chris Kahn (talk | contribs) |
Chris Kahn (talk | contribs) |
||
Line 27: | Line 27: | ||
{{APIComment|'Add a row to RawDataSet object with the specified part name and number.}} | {{APIComment|'Add a row to RawDataSet object with the specified part name and number.}} | ||
RDW.AddDataRow(row1) | RDW.AddDataRow(row1) | ||
{{APIComment|'Connect to a Synthesis repository.}} | {{APIComment|'Connect to a Synthesis repository.}} | ||
Dim MyRepository As New Repository | Dim MyRepository As New Repository | ||
Line 34: | Line 34: | ||
{{APIComment|'Add the raw data to the Raw Data Warehouse in the repository.}} | {{APIComment|'Add the raw data to the Raw Data Warehouse in the repository.}} | ||
MyRepository.SaveRawDataSet(RDW) | MyRepository.SaveRawDataSet(RDW) | ||
{{APIComment|'Disconnect from repository.}} | {{APIComment|'Disconnect from repository.}} | ||
MyRepository.DisconnectFromRepository() | 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
- AddDataRow( RawData ) Adds the specified RawData object to RawDataSet.
- Clear Clears all RawData objects from RawDataSet.
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()