public StorableObject[] ImportDevicesText( Project oProject, string strImportFilePath, string strSchemeName, string strSeparator, int nHeadLinePos, int nHeadLineCount, FunctionDefinition oFuncDef, FunctionDefinition oTermFuncDef, DeviceService.ImportMode eMode )
Parameters
| Parameter Name | Description |
|---|---|
| oProject | Project into which the devices will be imported. |
| strImportFilePath | Full file name of the devices file to import. |
| strSchemeName | Name of the import scheme. If the scheme name is empty, the last used scheme of the project will be used. |
| strSeparator | Char to separate column values of the text. |
| nHeadLinePos | The position of the head line that will be used to assign the column values at the import. |
| nHeadLineCount | The count of head lines that will be skipped at the import. |
| oFuncDef | Default Function Definition |
| oTermFuncDef | Default Terminal Function Definition |
| eMode | The import mode can be a combination of the XPProcImportMode enum and controls the import action (input parameter, optional): • eCreateMode = 1: The import create only missing device tags • eChangeMode = 2: The import change only existing device tags • eDeleteMode = 4: The import delete only unnecessary existing device tags |
Return Value
Result is returned as an array of StorableObjects.