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

AddOption(String) Method
Adds Option to the Project.
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 Project.
Remarks
This method adds an Option straight to the Project, Option is not assigned to any OptionGroup. Option name must be unique in the set of Options that are not assigned to any OptionGroup.
See Also