Eplan Platform API
Eplan.EplApi.HEServices Namespace / Insert3D Class / WindowMacro Method / WindowMacro(WindowMacro,Int32,PointMate,Mate,Double,Double,Double,Double,NumerationMode,Boolean) Method
Object with opened macro.
Index of the macro variant to be placed (0 based).
given mate of macro
target mate
additional rotation angle (radian)
additional offset in x direction
additional offset in y direction
additional offset in z direction
numeration mode
if true, the given mate of macro will project to the placement area of macro

In This Topic
    WindowMacro(WindowMacro,Int32,PointMate,Mate,Double,Double,Double,Double,NumerationMode,Boolean) Method
    In This Topic
    Places a window macro with a given mate to another mate. That means, that the position and/or orientation of the associated placements will change, so that the given mate fits to the target mate.
    Syntax

    Parameters

    Parameter NameDescription
    oMacroObject with opened macro.
    nVariantIndex of the macro variant to be placed (0 based).
    oSourceMategiven mate of macro
    oTargetMatetarget mate
    dRotationAngleadditional rotation angle (radian)
    dXadditional offset in x direction
    dYadditional offset in y direction
    dZadditional offset in z direction
    nNumerationModenumeration mode
    bUseSourceMateOnPlacementAreaif true, the given mate of macro will project to the placement area of macro

    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.
    See Also