ITcSysManager::NewConfiguration

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

HRESULT NewConfiguration();

Return Values

S_OK

Function has returned a value.

E_ACCESSDENIED

The actual document is locked in the System Manager-Instance. This is if at least one reference to the system manager-object or one of the Tree Items is opened.

E_FAIL

Function failed.

Comments

Warning: 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.