public void SelectActiveTaskConfiguration( string configurationName )
Parameters
- configurationName
- Name of the desired configuration.
public void SelectActiveTaskConfiguration( string configurationName )
Exception | Description |
---|---|
EPLAN.Harness.API.Exceptions.ArgumentNullException | Argument is null. |
EPLAN.Harness.API.Exceptions.ArgumentException | Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property. |
EPLAN.Harness.API.Exceptions.FileClosedException | This file is not opened. |
// Get controller from opened designer. TasksController tasks = designer.Tasks; // Find desired configuration. string myConfig = tasks.Configurations.FirstOrDefault(c => c == "MyConfiguration"); // Select the configuration as active configuration. tasks.SelectActiveTaskConfiguration(myConfig);