API | ITcSysManager Signature HRESULT CreateItemCollection(VARIANT_BOOL bAllowDuplicates, ITcTreeItemCollection2** ppItems); Parameter Return value See also ITcTreeItemCollection2 5.1.13 ITcSysManager14 | ITcSysManager14 Inherits from: ITcSysManager13 [ } 51] Extended by: ITcSysManager15 [ } 53] Adds support for project variants – that is, multiple named configurations of the same project file – and provides the fixed TwinCAT version for TcVersionFixed (see ITcSysManager12 [ } 51] ). Properties Methods (none) TE1000 52 Version: 1.7.0 Name Type Description bAllowDuplicates VARIANT BOOL _ [in, defaultvalue(0)] VARIANT TRUE: The same Tree Item _ may appear multiple times in the collection.
Name Type Description ppItems ITcTreeItemCollection2** [out, retval] Empty, mutable collection. (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Property Type get/set Description CurrentProjectVariant BSTR get/set Name of the active project variant. If the value is changed, the project switches to the appropriate variant configuration and the corresponding item set in memory. ProjectVariantConfig BSTR get/set An XML document that describes the available project variants and their build settings. ProjectVariantItems BSTR get/set An XML document that specifies, for each variant, which Tree Items are included or excluded.
PinnedTcVersion BSTR get Returns the fixed TwinCAT version of the project (version string; empty if not fixed). See TcVersionFixed.