API The main tree items that exist in every configuration file can be accessed via shortcuts. These shortcuts are language neutral and require less memory: Sample (C++): ITcSmTreeItem* ipItem; BSTR bstrItem = L"TIID^Device 1 (C1220)"; if ( SUCCEEDED(spTsm->LookupTreeItem( bstrItem, &ipItem ))) { // do anything with ipItem ipItem->Release(); } Sample (VB): Dim ipItem As ITcSmTreeItem Set ipItem = spTsm.LookupTreeItem("TIID^Device 1 (C1220)") ' do anything with ipItem 6.1.13 ITcSysManager3::LookupTreeItemById The LookupTreeItemById() method returns a ITcTreeItem pointer of a tree item given by it's full path name.
HRESULT LookupTreeItemById(longitemType, longitemId, ITcSmTreeItem**pipItem); Parameters Return Values 6.1.14 ITcSysManager3::ProduceMappingInfo Generates an XML output that includes all currently configured mappings, e.g. between PLC and I/O. HRESULT ProduceMappingInfo(); Automation Interface 36 Version:
1.2 Shortcut Description "TIIC" Shortcut for "I/O Configuration" "TIID" Shortcut for "I/O Configuration^I/O Devices" or "I/O Configuration" TAB "I/O Devices" "TIRC" Shortcut for "Real-Time Configuration" "TIRR" Shortcut for "Real-Time Configuration^Route Settings" "TIRT" Shortcut for "Real-Time Configuration^Additional Tasks" or "Real-Time Configuration" TAB "Additional Tasks" "TIRS" Shortcut for "Real-Time Configuration^Real-Time Settings" or "Real-Time Configuration" TAB "Real-Time Settings" "TIPC" Shortcut for "PLC Configuration" "TINC" Shortcut for "NC Configuration" "TICC" Shortcut for "CNC Configuration" "TIAC" Shortcut for "CAM Configuration" itemType [in] Item type of the TreeItem to find.
itemId [in] ID of the TreeItem pipItem [out, retval] points to the location of a ITcSmTreeItem [} 37] interface pointer on return. The interface pointer gives access to specific methods belonging to the tree item. S OK _ function returns successfully. TSM E ITEMNOTFOUND _ _ (0x98510001) the itemType itemId combination doesn't qualify a valid tree item.