beckhoff TE1000 TwinCAT 3 — 5.25.1.10 ITcPlcLibraryManager::AddLibrary

API | ITcPlcLibraryManager ArgumentException : The library name does not correspond to a valid library. SysManAutomationException(…, TSM_E_ITEMNOTFOUND) : Repository or library not found. 5.25.1.9 ITcPlcLibraryManager::FreezePlaceholder | ITcPlcLibraryManager::FreezePlaceholder Freezes the EffectiveResolution of a placeholder (or, if empty or null, of all placeholders). Signature HRESULT FreezePlaceholder([in, defaultvalue(L"")] BSTR bstrPlaceholderName); Parameter Return value Error codes DanglingAdapterException : Adapter not connected. AutomationException(…, E_FAIL) : No EffectiveResolution available ( Error_PlaceholderNotResoluted_CannotFreeze ) or placeholder not found.

5.25.1.10 ITcPlcLibraryManager::AddLibrary | ITcPlcLibraryManager::AddLibrary Adds a library or placeholder reference to the current project (transaction) and then forces a project reload. Signature HRESULT AddLibrary([in] BSTR bstrLibName, [in, defaultvalue(L"")] BSTR bstrVersion, [in, defaultvalu e(L"")] BSTR bstrCompany); Parameter Return value Error codes DanglingAdapterException : Adapter not connected. SysManAutomationException(…, TSM_E_ITEMNOTFOUND) : Managed/default library not found. ArgumentException : Library or placeholder is already included. TE1000 118 Version:

1.7.0 Name Type Description bstrPlaceholderNam e BSTR [in, defaultvalue("")] Name of the placeholder (empty/null = all). Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description bstrLibName BSTR [in] Name of the library. bstrVersion BSTR [in, defaultvalue("")] Version (empty = latest/managed). bstrCompany BSTR [in, defaultvalue("")] Distributor/company. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _