vmtcsvInstallCsvFile
vmtcsvInstallCsvFile(
t_destLibName
t_destCellName
t_csvFileName
x_cdfParamNameLineNumber
[?ignoreLineNumbers t_ignoreLineNumbers]
[?ignoreColumnNumbers t_ignoreColumnNumbers]
[?cdfParamPromptLineNumber x_cdfParamPromptLineNumber]
[?partNameToImport t_partNameToImport]
[?paramMap t_paramMap]
[?mode t_mode]
)
=> t / nil
Description
Installs the CSV file into the destination cellview and creates the CDF parameters corresponding to the columns in the CSV file.
Arguments
|
t_destLibName
|
The name of the library where the CSV file will be installed. If the library does not exist, it is created automatically.
|
|
t_destCellName
|
The name of the cell in destLibName, where the CSV file will be installed. If the library does not exist, it is created automatically.
|
|
t_csvFileName
|
The CSV file to be processed and installed.
|
|
x_cdfParamNameLineNumber
|
|
|
The line number of the CSV file that will be treated as the header row. You can specify only one line number.
|
|
?ignoreLineNumbers t_ignoreLineNumbers
|
|
|
A space- or comma-separated string of line numbers that are ignored. The default value is "".
|
|
?ignoreColumnNumbers t_ignoreColumnNumbers
|
|
|
A space- or comma-separated string of column numbers that are ignored. The default value is "".
|
|
?cdfParamPromptLineNumber x_cdfParamPromptLineNumber
|
|
|
The line number of the CSV file that is considered as the prompt for CDF properties. If this argument is not specified, the header is considered as the prompt. Only one line number can be specified. The default value is -1.
|
|
?partNameToImport t_partNameToImport
|
|
|
If this argument is specified, only the rows that have the PART column values matching the partNameToImport are copied to the processed CSV file. The default value is "".
|
|
?paramMap t_paramMap
|
|
|
The mapped name for each column. The default value is "".
|
|
?mode t_mode
|
|
|
The mode in which the CSV file is updated. If the value of this argument is a, the existing CSV file is opened in append mode and data is added to the end of the file. The header data of the existing CSV file and csvFileName must match. If the value of this argument is w, the existing CSV file is overwritten. The default value is w.
|
Value Returned
|
t
|
The CSV file was installed successfully.
|
|
nil
|
The CSV file was not installed.
|
Example
vmtcsvInstallCsvFile("testlib" "ind1" "./ind_jedec_mojito.csv" 1 ?cdfParamPromptLineNumber 2)
Creates a cellview testlib/ind1 and a processed CSV file, part.csv.
Related Topic
Variant Definitions in CSV Files
Return to top