Eplan Platform API
Eplan.EplApi.HEServices Namespace / Insert3D Class / WindowMacro Method / WindowMacro(WindowMacro,Int32,Mate,MoveKind,NumerationMode) Method
Opened macro object.
Index of the macro variant to be placed (0 based).
target mate
Determines if the macro will be placed with absolute coordinates or relatively to the target's mate Placement3D
Numeration mode used during inserting objects.

In This Topic
    WindowMacro(WindowMacro,Int32,Mate,MoveKind,NumerationMode) Method
    In This Topic
    Places objects from window macro into layout space.
    Syntax

    Parameters

    Parameter NameDescription
    oMacroOpened macro object.
    nVariantIndex of the macro variant to be placed (0 based).
    oTargetMatetarget mate
    nMoveConditionDetermines if the macro will be placed with absolute coordinates or relatively to the target's mate Placement3D
    nNumerationModeNumeration mode used during inserting objects.

    Return Value

    Inserted placements.
    Exceptions
    ExceptionDescription
    Thrown in case of invalid parameters.
    Thown if NULL was set to a parameter.
    Thrown if an error occurred during the macro insertion process. Please refer to the error message.
    Remarks
    Method places items according to macro's handle and a target mate, similarly as in GUI.
    See Also