Eplan Platform API
Eplan.EplApi.DataModel Namespace / OptionGroup Class / AddOption Method / AddOption(String) Method
name of the option

AddOption(String) Method
Adds Option to the OptionGroup. The description is set to an empty multilang value, the state is set to true (so the option is active).
Syntax
public Option AddOption( 
   string strName
)

Parameters

strName
name of the option

Return Value

Returns added Option.
Exceptions
ExceptionDescription
Thrown when strName is null.
Thrown when strName is empty.
Thrown when Option with strName already exists in OptionGroup.
Remarks
Option name must be unique for the group.
See Also