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

    Parameter NameDescription
    pageEplan.EplApi.DataModel.Page the Image will be placed on.
    fileNamepath to graphical file containing the image
    pntStartEplan.EplApi.Base.PointD representing 1st image's corner
    pntEndEplan.EplApi.Base.PointD representing 2nd image's corner
    bCopyToProjectSystem.Boolean determine if the image file is copied to project
    bOverWriteSystem.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