ITcPlcIECProject::PlcOpenImport

Imports a PlcOpen conform XML file and its content. A path to the XML file will be passed to the method via a parameter.

HRESULT PlcOpenImport(BSTR bstrFile, int options, BSTR bstrSelection, VARIANT_BOOL bFolderStructure);

Parameters

bstrFile

[in] : Path to the XML file.

options

[in, optional, defaultvalue(0)] : Options for import, according to enum PLCIMPORTOPTIONS.

bstrSelection

[in, optional, defaultvalue("")] : Selects which items from the XML structure should be imported

bFolderStructure

[in, optional, defaultvalue(-1)] : If set to true (-1), the folder structure of the imported objects remains the same, if this information is available in the XML file

Return Values

S_OK

PlcOpen XML file successfully imported.