Harness proD API Help
EPLAN.Harness.API.ApiProperties Namespace / ElectricalConfigurationSetting Class / ElectricalConfigurationSetting Constructor
Name of the new electrical configuration.
Part number of the new electrical configuration.
Description of the new electrical configuration.
Example
In This Topic
    ElectricalConfigurationSetting Constructor
    In This Topic
    Creates new instance of the electrical configuration setting.
    Syntax
    public ElectricalConfigurationSetting( 
       string name,
       string partNumber,
       string description
    )

    Parameters

    name
    Name of the new electrical configuration.
    partNumber
    Part number of the new electrical configuration.
    description
    Description of the new electrical configuration.
    Exceptions
    ExceptionDescription
    Thrown when you create a new electrical configuration and no project is open.
    Remarks
    New electrical configurations have all electrical options not used.
    Example
    This example shows how to create a new electrical configuration and set all of its electrical options to used.
    ElectricalConfigurationSetting elConfig = new ElectricalConfigurationSetting("Name", "00042", "All electrical options.");
    foreach (ElectricalOption elOption in elConfig.ElectricalOptions)
    {
    	elOption.IsUsed = true;
    }
    See Also