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

    oMacro
    PageMacro object to be inserted.
    oInsertAfterPage
    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.
    oProject
    Project into which the macro will be inserted.
    overwrite
    Pages with the same designation will be overwritten..
    nNumerationMode
    numeration mode

    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