Beckhoff Automation GmbH & Co. KG — 6.2 ITcSmTreeItem

API Methods Automation Interface 38 Version: 1.2 ITcSmTreeItem Property Type Access Description • SMDS PARENT DISABLED (read only, set if one of its _ _ parent is disabled) PathName BSTR R Path of tree item in TwinCAT XAE. The branches are separated by '^'. The PathName may be used in other method calls, e.g. ITCatSysManager::LookupTreeItem [} 35]. Please note that this property uniquely identifies a tree item in TwinCAT XAE. ItemType ENUM R Categorization of a tree item, e.g. Devices, Boxes, PLC, ... . As defined by item types [} 39]. ItemSubType LONG RW Sub type [} 41] of a tree item. Parent ITcSmTreeIte m* R Pointer to the parent tree item. ChildCount LONG R Number of childs.

Childs counted by this property enclose only main childs of the tree item (e.g. boxes are main childs of a device but not the device process image). To access all childs use the NewEnum property. _ Child(LONG n) ITcSmTreeIte m* R ITcSmTreeItem pointer of the n-th child VarCount((LONG x) LONG R Number of variables belonging to the tree item. x = 0 counted the input variables, x = 1 the outputs Var(LONG x, LONG n) ITcSmTreeIte m* R ITcSmTreeItem pointer of the n-th variable. x = 0 uses the input variables, x = 1 the outputs NewEnum _ IUnknown* (IEnumVariant *) R Returns a enum interface that enumerates all child tree items of the current tree item.

This property may be used, for example, by a For-Each statement. ITcSmTreeItem Methods Description Available since CreateChild [} 62] Creates a child tree item. TwinCAT 2.11 DeleteChild [} 63] Deletes a child tree item. TwinCAT 2.11 ImportChild [} 64] Imports a child item from the clipboard or a previously exported file. TwinCAT 2.11 ExportChild [} 64] Exports a child item to the clipboard or a file. TwinCAT 2.11 ProduceXml [} 60] Returns a String containing the XML representation of the item, with all its item-specific data and parameters. TwinCAT 2.11 ConsumeXml [} 61] Consumes a String containing the XML representation of the tree item, with all its item-specific data and parameters.

TwinCAT 2.11 GetLastXmlError [} 66] Gets the error message of the last erroneous ConsumeXml() call. TwinCAT 2.11 LookupChild [} 65] Searches for a child with the specified relative path. TwinCAT 2.11 ITcSmTreeItem2 Methods Description Available since ResoucesCount [} 65] For interal use only TwinCAT 2.11 ChangeChildSubType [} 65] Changes the SubType of the ITcSmTreeItem. TwinCAT 2.11 ClaimResources [} 66] For internal use only TwinCAT 2.11