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

    Parameter NameDescription
    strEMPFileNameFull file name of the PageMacro to be inserted.
    oInsertAfterPagePage after which the macro will be inserted.
    oProjectProject into which the macro will be inserted.
    overwritePages 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.
    Thrown if NULL was assigned to a parameter.
    An error occurred during inserting the macro. Please refer to the error message.
    See Also