API Help
Eplan.EplApi.DataModel Namespace / Page Class / CopyTo Method / CopyTo(Project,PagePropertyList,NumerationMode,Boolean) Method
Target project in which copy of page will be created. Can be null or invalid.
List of property defining name of new page. Can't be null.
Determines how devices located on page will be renumbered.
Controls if new page will overwrite existing page.

In This Topic
    CopyTo(Project,PagePropertyList,NumerationMode,Boolean) Method
    In This Topic
    Creates copy of this page.
    Syntax

    Parameters

    pProject
    Target project in which copy of page will be created. Can be null or invalid.
    pPageName
    List of property defining name of new page. Can't be null.
    nNumerationMode
    Determines how devices located on page will be renumbered.
    bOverwrite
    Controls if new page will overwrite existing page.

    Return Value

    Returns newly created page or null if page of same name existed and was not overwritten.
    Exceptions
    ExceptionDescription
    Thrown when required argument is null.
    Thrown when internal problem has occurred during coping the page. Please check exception message for more info.
    Remarks
    Page is copied and inserted into target project with copy of all placement located on this page. New page gets name specified in parameter pPageName. Function can be forced to overwrite a page if one with the same name will already exists in target project if value of bOverwrite will be true. If in such situation bOverwrite will be false then the function will not report an error but will return null.
    See Also