Eplan Platform API
Eplan.EplApi.HEServices Namespace / Insert Class / PageMacro Method / PageMacro(String,Page,Project,Boolean) Method
Full file name of the PageMacro to be inserted.
Page after which the macro will be inserted.
Project into which the macro will be inserted.
Pages with the same designation will be overwritten..

In This Topic
    PageMacro(String,Page,Project,Boolean) Method
    In This Topic
    Inserts a page macro into a project. You need to set the page, after which the new pages are inserted. You can either overwrite already existing pages having the same name, or the macro pages will be appended after the highest existing number of the location.
    Syntax

    Parameters

    strEMPFileName
    Full file name of the PageMacro to be inserted.
    oInsertAfterPage
    Page after which the macro will be inserted.
    oProject
    Project into which the macro will be inserted.
    overwrite
    Pages with the same designation will be overwritten..

    Return Value

    Inserted pages and functions which were not placed (with null .Page property)
    Exceptions
    ExceptionDescription
    Thrown in case of invalid parameters.
    Null was set to a parameter.
    An error occurred during inserting the macro. Please refer to the error message.
    See Also