Eplan Platform API
Eplan.EplApi.HEServices Namespace / Masterdata Class / PrepareMacros Method / PrepareMacros(Project,Boolean,Boolean,Boolean) Method
Project for which preparation should be performed. It has to be a macro project.
Group macro boxes with their contents.
Group contents of a page macro.
Activates handle for macro box. By this unwanted shifting of macro is prevented.

In This Topic
    PrepareMacros(Project,Boolean,Boolean,Boolean) Method
    In This Topic
    Prepares and groups all elements belonging to a macro box or page macro.
    Syntax

    Parameters

    Parameter NameDescription
    oProjectProject for which preparation should be performed. It has to be a macro project.
    bGroupMacroBoxesGroup macro boxes with their contents.
    bGroupPageMacrosGroup contents of a page macro.
    bSetHandleOnMacroBoxesActivates handle for macro box. By this unwanted shifting of macro is prevented.
    Exceptions
    ExceptionDescription
    Thrown if the project was set to a NULL reference.
    Project is invalid.
    Internal interface for master data could not be created.
    Macros cannot be prepared.
    See Also