Eplan Platform API
Eplan.EplApi.HEServices Namespace / Insert Class / PageMacro Method / PageMacro(PageMacro,Page,Project,Boolean,NumerationMode) Method
PageMacro object to be inserted.
Page after which the macro will be inserted. Some structure identifiers will be taken from the Parent Node of this page. If you transfer NULL for oInsertAfterPage, then the structure identifiers will be taken from the macro.
Project into which the macro will be inserted.
Pages with the same designation will be overwritten..
numeration mode

In This Topic
    PageMacro(PageMacro,Page,Project,Boolean,NumerationMode) 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
    oMacroPageMacro object to be inserted.
    oInsertAfterPagePage after which the macro will be inserted. Some structure identifiers will be taken from the Parent Node of this page. If you transfer NULL for oInsertAfterPage, then the structure identifiers will be taken from the macro.
    oProjectProject into which the macro will be inserted.
    overwritePages with the same designation will be overwritten..
    nNumerationModenumeration mode

    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