Eplan Platform API
Eplan.EplApi.DataModel.Graphics Namespace / Image Class / Create Method / Create(Page,String,PointD,PointD,Boolean,Boolean) Method
Eplan.EplApi.DataModel.Page the Image will be placed on.
path to graphical file containing the image
Eplan.EplApi.Base.PointD representing 1st image's corner
Eplan.EplApi.Base.PointD representing 2nd image's corner
System.Boolean determine if the image file is copied to project
System.Boolean determine if destianation can be overwrite if exists; if false and file destination exists an exception is thrown

In This Topic
    Create(Page,String,PointD,PointD,Boolean,Boolean) Method
    In This Topic
    Creates the Image object.
    Syntax

    Parameters

    page
    Eplan.EplApi.DataModel.Page the Image will be placed on.
    fileName
    path to graphical file containing the image
    pntStart
    Eplan.EplApi.Base.PointD representing 1st image's corner
    pntEnd
    Eplan.EplApi.Base.PointD representing 2nd image's corner
    bCopyToProject
    System.Boolean determine if the image file is copied to project
    bOverWrite
    System.Boolean determine if destianation can be overwrite if exists; if false and file destination exists an exception is thrown
    Exceptions
    ExceptionDescription
    Thrown when page is null.
    Thrown when the Image cannot be created.
    Thrown when the Image has already been created.
    Thrown when the Image cannot be copied into the project.
    Thrown when given Eplan.EplApi.DataModel.Page has PageType sets to ExternalDocument.
    See Also