# 2.7.64 iwFilter

## Brief Information

Create or edit an import filter

## 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.

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 Specify the files to exclude them from current filter. When drag and drop these files, this filter will not be available. The description of the filter which is use to specify its usage. 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 \Import Shapefile\) for the drag&drop importing behavior. Select the type of page to be imported to. You can choose worksheet, Matrix or None. To specify whether to show the filter in the File Open list or not. To open the dialog or not in the process of importing. 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. Run the Labtalk script after import all files. This group of setting depends on the specific import X-Function, please refer to the documents of them for more details.