API Help
Eplan.EplApi.DataModel Namespace / Function Class / Create Method / Create(FunctionDefinition,Project) Method
FunctionDefinition used to create the Function.
Project where the Function will be located in.
Example

In This Topic
    Create(FunctionDefinition,Project) Method
    In This Topic
    Creates a not placed Function from FunctionDefinition passed as parameter.
    Syntax

    Parameters

    pFunctionDefinition
    FunctionDefinition used to create the Function.
    pProject
    Project where the Function will be located in.
    Exceptions
    ExceptionDescription
    Thrown when the function cannot be created.
    Thrown when parameter is null.
    Example
    Example shows how to create function with help of function definition:
    //create function object based on function definition
    Function oNewFunction = Function.Create(oFuncDef, oPage.Project);
    
    //place created function on page
    oNewFunction.Page = oPage;
    
    
    
    See Also