Eplan Platform API
Eplan.EplApi.DataModel Namespace / FunctionDefinition Class / FunctionDefinition Constructor / FunctionDefinition Constructor(Project,FunctionCategory,MultiLangString,MultiLangString)
Category of the function definition.
Group of the function definition (e.g. "Ader/Draht").
Identification name of the function definition (e.g. "Brücke"). This name for a specific function definition is returned by the FunctionDefinition::Name property.
Example

In This Topic
    FunctionDefinition Constructor(Project,FunctionCategory,MultiLangString,MultiLangString)
    In This Topic
    Constructs and initializes a FunctionDefinition object with the specified function's category, group and ID. Note: The specified function definition must exist in the project's standard function definitions library
    Syntax

    Parameters

    prj
    funcCategory
    Category of the function definition.
    funcGroupName
    Group of the function definition (e.g. "Ader/Draht").
    funcDefName
    Identification name of the function definition (e.g. "Brücke"). This name for a specific function definition is returned by the FunctionDefinition::Name property.
    Exceptions
    ExceptionDescription
    Thrown when the specified function definition (category, group and ID) doesn't exists in the project's function definitions library.
    Remarks
    Note: Only the first language strings passed by funcGroupName and funcIDName are taken into account.
    Example
    MultiLangString grpName = new MultiLangString();
    grpName.AddString(ISOCode.Language.L_de_DE, "Ader/Draht");
    MultiLangString idName = new MultiLangString();
    idName.AddString(ISOCode.Language.L_de_DE, "Brücke");
    
    FunctionDefinition fctDef = new FunctionDefinition(prj, funcCategory, grpName, idName);
    See Also