API Help
Eplan.EplApi.DataModel Namespace / Function Class / Create Method / Create(Page,FunctionDefinition) Method
Page where the Function will be placed on
FunctionDefinition the Function will be assigned

In This Topic
    Create(Page,FunctionDefinition) Method
    In This Topic
    Creates a Function object placed on a Page given as the first parameter and having a FunctionDefinition taken from FunctionDefinition passed as the second parameter.
    Syntax

    Parameters

    page
    Page where the Function will be placed on
    functionDefinition
    FunctionDefinition the Function will be assigned
    Exceptions
    ExceptionDescription
    Thrown when the function cannot be created.
    Thrown when page is null.
    Thrown when functionDefinition is null.
    Thrown when the function cannot be created.
    Thrown when the function has already been created.
    Thrown when given Page has PageType sets to ExternalDocument.
    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