Dear users,
In SDL Studio 2014, I need to implement a function which removes all termbases from a project.
I tried to overwrite the current List with an empty one.
TermbaseConfiguration termbaseConfig = project.GetTermbaseConfiguration();
int tbCount = termbaseConfig.Termbases.Count;
if (tbCount > 0)
{
termbaseConfig.Termbases = new List<Termbase>();
project.UpdateTermbaseConfiguration(termbaseConfig);
}
However, I get the runtime argument exception "No termbases have been specified." when the UpdateTermbaseConfiguration method is invoked. It seems that the configuration requires at least one termbase to work properly.
Any suggestion would be appreciated.