Eplan Platform API
Eplan.EplApi.DataModel Namespace / Function Class / Create Method / Create(Project,FunctionDefinition) Method
Project where the Function will be located in
FunctionDefinition the Function will be assigned

In This Topic
    Create(Project,FunctionDefinition) Method
    In This Topic
    Creates a Function. It is not placed on any Page. and having a FunctionDefinition taken from FunctionDefinition passed as the second parameter.
    Syntax

    Parameters

    proj
    Project where the Function will be located in
    functionDefinition
    FunctionDefinition the Function will be assigned
    Exceptions
    ExceptionDescription
    Thrown when the function cannot be created.
    Thrown when page is null.
    Thrown when symbVariant is null.
    Thrown when the function cannot be created.
    Thrown when the function has already been created.
    Remarks
    This method no longer can create functions with category Shielding. The correct way to create Shield object is either use one of static Create methods or use a method on Shield class.
    See Also