beckhoff TE1000 TwinCAT 3 — 5.2.1.4 ITcSmTreeItem::ExportChild

API | ITcSmTreeItem Signature HRESULT CreateChild(BSTR bstrName, long nSubType, BSTR bstrBefore, VARIANT vInfo, ITcSmTreeItem** pi pItem); Parameter Return value Error codes E_NOTIMPL : This specific item does not support this operation. E_ACCESSDENIED : The associated file must not be edited. TSM_E_ITEMDELETED : no longer refers to a valid Tree Item. 5.2.1.3 ITcSmTreeItem::DeleteChild | ITcSmTreeItem::DeleteChild Deletes a direct child by its name. For simple Tree Items that do not support this operation, E_NOTIMPL is returned. Signature HRESULT DeleteChild(BSTR bstrName); Parameter Return value Error codes E_NOTIMPL : This specific item does not support this operation. E_ACCESSDENIED :

The associated file must not be edited. TSM_E_ITEMDELETED : The referenced Tree Item is no longer valid. 5.2.1.4 ITcSmTreeItem::ExportChild | ITcSmTreeItem::ExportChild Exports a direct child to an .xti file. If bstrName is empty, the current item itself is exported. If a target path is specified, the target folder must exist and the file must not already be present. TE1000 58 Version: 1.7.0 Name Type Description bstrName BSTR [in] Name of the new child. nSubType long [in, defaultvalue(0)] SubType of the new child. bstrBefore BSTR [in, defaultvalue(L"")] Optional name of the child before which the insertion will take place. vInfo VARIANT [in, optional] Additional structured information.

Name Type Description pipItem ITcSmTreeItem** [out, retval] Newly created Tree Item. (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description bstrName BSTR [in] Name of the child to be deleted. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _