API Help
Eplan.EplApi.DataModel.EObjects Namespace / Cable Class / Create Method / Create(Page,SymbolVariant,PointD,PointD) Method
Eplan.EplApi.DataModel.PagePage where the Function will be located on.
Eplan.EplApi.DataModel.MasterData.SymbolVariant symbol variant for this cable
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 Eplan.EplApi.DataModel.Page given as a parameter and sets it Eplan.EplApi.DataModel.MasterData.SymbolVariant together with LogicalArea.
    Syntax

    Parameters

    page
    Eplan.EplApi.DataModel.PagePage where the Function will be located on.
    symbVariant
    Eplan.EplApi.DataModel.MasterData.SymbolVariant symbol variant for this cable
    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