ImportedDataCollection
A collection of imported data.
Example
app = pf.GetApplication() app:NewProject() graph = app.CartesianGraphs:Add() app:ImportResults(FEKO_HOME..[[/shared/Resources/Automation/SParameters.s2p]], pf.Enums.ImportFileTypeEnum.Touchstone) -- Retrieve the newly imported data collection from the first import set importedDataCollection = app.ImportedDataSets[1].ImportedData -- Retrieve the label of the first imported data in the collection label = importedDataCollection[1].Label -- Add the first imported data in the collection to the cartesian graph graph.Traces:Add(importedDataCollection[1])
Usage locations
The ImportedDataCollection object can be accessed from the following locations:
- Collection lists
- ImportSet object has collection ImportedData.
Property List
Method List
- Contains (label string)
- Checks if the collection contains an item with the given label. (Returns a boolean object.)
- Item (index number)
- Returns the ResultData at the given index. (Returns a ResultData object.)
- Item (label string)
- Returns the ResultData with the given label. (Returns a ResultData object.)
- Items ()
- Returns a table of ResultData. (Returns a List of ResultData object.)
- UniqueName (label string)
- Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated. (Returns a boolean object.)
Index List
- [number]
- Returns the ResultData at the given index in the collection. (Read ResultData)
- [string]
- Returns the ResultData with the given name in the collection. (Read ResultData)
Property Details
Method Details
- Contains (label string)
- Checks if the collection contains an item with the given label.
- Item (index number)
- Returns the ResultData at the given index.
- Input Parameters
- index(number)
- The index of the ResultData.
- Return
- ResultData
- The ResultData at the given index.
- Item (label string)
- Returns the ResultData with the given label.
- Input Parameters
- label(string)
- The label of the ResultData.
- Return
- ResultData
- The ResultData with the given label.
- Items ()
- Returns a table of ResultData.
- Return
- List of ResultData
- A table of ResultData.
- UniqueName (label string)
- Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated.