2.7.65 iwFilter


Brief Information

Create or edit an import filter

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
Filter Name fname

Input

string

fname$

The name of the filter which is being edited. This is not editable from the dialog.

Format Name format

Input

string

<none>

Specifies the format of the imported files. Once you selected a file format, corresponding X-Function will be called.

General Import Setting gsetting

Input

TreeNode

<unassigned>

Specifies the general import settings in the filter.
See more details in Description table

Special Import Setting options

Input

TreeNode

<unassigned>

Specifies the special import settings in the filter.
See more details in Description table

User Defined userdefined

Input

TreeNode

<unassigned>
In the dialog, when you load user defined type Import Filter, it will show User Defined branch. Underneath, there are 3 branches with checkbox to enable Python Code, Python File, Origin C.
Input Filter Tree ifilter

Input

TreeNode

<unassigned>

This is not editable from the dialog.

Output Filter Tree ofilter

Output

TreeNode

<optional>

This is not editable from the dialog.

Description

This X-function is used to make/edit import filter. See also Import Filter Manager for more info.

Iwfilter Dialog 01.png
Iwfilter Dialog 02.png

Settings in the dialog:

File Name Filter The file name filter, for example, *.dat means this filter is used to import file whose name match the pattern *.dat, such as medicine.dat, ammo.dat
Drag@Drop Exclusion Specify the files to exclude them from current filter. When drag and drop these files, this filter will not be available.
Filter Description The description of the filter which is use to specify its usage.
Module Location Path When you are saving a filter based on an import file APP, such as Import Shapefiles, you need specify the module path of that APP(such as <App folder>\Import Shapefile\) for the drag&drop importing behavior.
Page Type Select the type of page to be imported to. You can choose worksheet, Matrix or None.
Show Filter in File: Open List To specify whether to show the filter in the File Open list or not.
Open XF Dialog To open the dialog or not in the process of importing.
Script after Each File Imported Run the Labtalk script after import one of the files, for example, you can specify to run plotxy iy:=(1,2) to plot a graph after import a data file.
Script after All Files Imported Run the Labtalk script after import all files.
Special Import Setting This group of setting depends on the specific import X-Function, please refer to the documents of them for more details.