ImportDataset

Imports a dataset from a named file. This can be executed by the oProject, or oDesign variables. The name of the dataset is filename+index number (e.g., dsdata1) unless the filename ends with a trailing number. When there is a trailing number at the end, we will remove the number and use first unused index. Alternatively, the name of the dataset can be explicitly defined by providing a string as an optional second argument.

UI Access Project > Datasets > Import.
Parameters
Name Type Description
<datasetFileFullPath> String The full path to the file containing the dataset values. *.tab files recommended (see note below).
<optionalDatasetName> String Optional. User-defined dataset name.
Return Value None.

 

Python Syntax ImportDataset (<datasetFileFullPath>,<optionalDatasetName>)
Python Example

oProject.ImportDataset('e:\tmp\dsdata.tab')

oDesign.ImportDataset('e:\tmp\dsdata.tab')

oProject.ImportDataset('e:\tmp\dsdata.tab', 'MyDatasetName')

oDesign.ImportDataset('e:\tmp\dsdata.tab', 'MyDatasetName')

 

Note About File Types:

Tab-delimited or space-delimited files with the extension *.tab are the recommended file type. When using ImportDataset at the Design level, *.tab is the only file type supported.

At the Project level, other file types are supported (for example, *.csv). However, after calling the command, you must configure the file import format manually through the Electronics Desktop GUI by selecting Project > Datasets and clicking Import.