ImportedDataSetCollection
A collection of imported data sets.
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 import set from the import set collection importSetCollection = app.ImportedDataSets numberOfImportSets = importSetCollection.Count -- Retrieve the label and source file of the first import set label = importSetCollection[1].Label sourceFile = importSetCollection[1].SourceFile -- Duplicate the newly imported import set and then delete the original importSetCopy = importSetCollection[1]:Duplicate() importSetCollection[1]:Delete() -- Add the first imported data in the copied import set to the cartesian graph graph.Traces:Add(importSetCopy.ImportedData[1])
Usage locations
The ImportedDataSetCollection object can be accessed from the following locations:
- Collection lists
- Application object has collection ImportedDataSets.
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 ImportSet at the given index. (Returns a ImportSet object.)
- Item (label string)
- Returns the ImportSet with the given label. (Returns a ImportSet object.)
- Items ()
- Returns a table of ImportSet. (Returns a List of ImportSet 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
Property Details
Method Details
- Contains (label string)
- Checks if the collection contains an item with the given label.
- Item (index number)
- Returns the ImportSet at the given index.
- Item (label string)
- Returns the ImportSet with the given label.
- Items ()
- Returns a table of ImportSet.
- 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.