Data: Import from File: Thermo (SPC, CGM)
If you do not see this file type, choose Data: Import from File: Add/Remove File Types...
![]() | To add drag & drop support for a file type, see Import Filter Manager. |
This X-Function supports file re-import. See this topic for details.
Import Thermo File
impSPC fname:="c:\test.spc";
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
File Name | fname |
Input string |
|
Filename of the file to be imported. |
File Info | trfiles |
Input TreeNode |
|
This is used in the dialog for displaying the basic information of the file. |
Rename Column Short Name with Custom Label | sname |
Input int |
|
Whether rename column Short Name with Custom Label, true means rename and false means not
Note that from Origin 2017 column Short Name is restricted to alphabetical order and it cannot be edited by default. If you want to rename column Short Names on file import, you will need to go to the target workbook, uncheck the Spreadsheet Cell Notation checkbox in the Properties tab of Window Properties dialog. This will allow overwrite of column Short Name on import. |
Import Options | options |
Input TreeNode |
|
This is used to tweak the import options in the dialog. Please see the Description part of this document for details. |
Output | orng |
Output Range |
|
This is used to specify the output range.
See the syntax here. |
Header Info | trheader |
Output TreeNode |
|
This is for outputting the header information. It is hidden from the GUI. Users are not advised to use this variable. |
Repeat Import | reimp |
Input int |
|
Specifies whether or not reimport is allowed. |
This X-Function is used for importing Thermo data files.
Details on Some Dialog Options
Fname$="c:\test.spc"; impSPC;