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

In This Topic
    AddOption(String) Method
    In This Topic
    Adds Option to the Project.
    Syntax
    public Option AddOption( 
       string strName
    )
    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