Eplan Platform API
Eplan.EplApi.DataModel.Graphics Namespace / Image Class / SetFile Method
Full image file name.
Boolean value. If set to true, the image will be copied into the project directory.
Boolean value. If set to true, an already existing image with the same name will be overwritten

In This Topic
    SetFile Method
    In This Topic
    Sets the reference to bitmap file. If the image file is not yet located in the project folder, it will be copied there, if the second parameter is set to true.
    Syntax

    Parameters

    fileName
    Full image file name.
    copyToProject
    Boolean value. If set to true, the image will be copied into the project directory.
    overWrite
    Boolean value. If set to true, an already existing image with the same name will be overwritten

    Return Value

    true: if the image was successfully copied.
    Exceptions
    ExceptionDescription
    Thrown when the file cannot be set.
    Thrown when fileName is null.
    See Also