ITcSysManager::NewConfiguration

The NewConfiguration() method generates a new TwinCAT configuration file.

HRESULT NewConfiguration();

Return Values

S_OK

the function returns successfully.

E_ACCESSDENIED

the current document in the system manager instance is locked. This occurs if at least one reference to the system managers object or one of the tree elements are open.

E_FAIL

the function fails.

Comments

Note

The three methods ITcSysManager::NewConfiguration, ITcSysManager::OpenConfiguration and ITcsSysManager::SaveConfiguration are only available in Compatiblity Mode. Calling them in standard mode will throw an E_NOTSUPPORTED Exception.