Eplan Platform API
Eplan.EplApi.DataModel Namespace / Project Class / AddOption Method / AddOption(String,MultiLangString,Boolean) Method
name of the option
multilang description of the option

AddOption(String,MultiLangString,Boolean) Method
Adds Option to the Project.
Syntax

Parameters

strName
name of the option
mlDescription
multilang description of the option
bIsActive

Return Value

Returns added Option.
Exceptions
ExceptionDescription
Thrown when strName is null.
Thrown when strName is empty.
Thrown when mlDescription is null.
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