API Help
Eplan.EplApi.DataModel Namespace / Function Class / Create Method / Create(Page,SymbolVariant,PointD,PointD) Method
PagePage where the Function will be located on.
Eplan.EplApi.DataModel.MasterData.SymbolVariantSymbol variant for this function.
Eplan.EplApi.Base.PointDLower left corner of function's logical area.
Eplan.EplApi.Base.PointDUpper right corner of function's logical area.

In This Topic
    Create(Page,SymbolVariant,PointD,PointD) Method
    In This Topic
    Creates a Function object placed on a Page given as a parameter and sets it Eplan.EplApi.DataModel.MasterData.SymbolVariant together with LogicalArea.
    Syntax

    Parameters

    page
    PagePage where the Function will be located on.
    oSymbolVariant
    Eplan.EplApi.DataModel.MasterData.SymbolVariantSymbol variant for this function.
    oStartPoint
    Eplan.EplApi.Base.PointDLower left corner of function's logical area.
    oEndPoint
    Eplan.EplApi.Base.PointDUpper right corner of function's logical area.
    Exceptions
    ExceptionDescription
    Thrown when the function cannot be created.
    Thrown when oPage parameter is null.
    Thrown when the function cannot be created.
    Thrown when oSymbolVariant parameter is null.
    Thrown when the function has already been created.
    Thrown when implementation of requested interface isn't found.
    Thrown when creating connection definition points fail.
    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