Beckhoff Automation GmbH & Co. KG — 6.2.8 ITcSmTreeItem::ExportChild

API Return Values 6.2.7 ITcSmTreeItem::ImportChild Imports a child item from the clipboard or a previously exported file. HRESULT ImportChild(BSTRbstrFile, BSTRbstrBefore, VARIANT_BOOLbReconnect, BSTRbstrName, ITcSmTreeIte m**pipItem); Parameters Return Values 6.2.8 ITcSmTreeItem::ExportChild Exports a child item to the clipboard or a file. HRESULT ExportChild(BSTRbstrName, BSTRbstrFile); Parameters Return Values Automation Interface 64 Version: 1.2 S OK _ function returns successfully. E ACCESSDENIED _ it is not allowed to delete the child item. TSM E ITEMNOTFOUND _ _ (0x98510001) The item bstrBefore was not found.

bstrFile [in, defaultvalue(L"")] File name of the file from which the new child will be imported. If no file name specified (empty string) the child will be imported from the clipboard. bstrBefore [in, defaultvalue(L"")] If set, the parameter contains the name of another child item in front of which the new item should be inserted. If not set, the child will be appended at the end. bReconnect [in, defaultvalue(VARIANT TRUE)] An optional flag that instructs _ the System Manager to try to reconnect the variables from the imported item to other variables in the configuration (by name). bstrName [in, defaultvalue(L"")] If set, overrides the child item name with its name in the import file.

pipItem [out, retval] Points to the location of a ITcSmTreeItem [} 37] interface pointer that receives the result. S OK _ function returns successfully. NTE NOT FOUND (0x80090011) _ _ the file can not be found/opened. NTE BAD SIGNATURE (0x80090006) _ _ the file does not contain a valid tree item. TSM E MISMATCHINGITEMS _ _ (0x98510004) the item in the file is not a valid child item. bstrName [in] Name of the child being exported. bstrFile [in, defaultvalue("")] File name of the file to which the child will be exported. If no file name specified (empty string) the child will be exported to the clipboard. S OK _ function returns successfully.

TSM E ITEMNOTFOUND _ _ (0x98510001) The item bstrName was not found.