Eplan Platform API
Eplan.EplApi.HEServices Namespace / Insert3D Class / WindowMacro Method / WindowMacro(WindowMacro,Int32,PointMate,Mate,Double,Double,Double,Double,NumerationMode) Method
Object with opened macro.
Index of the macro variant to be placed (0 based).
Given mate of a macro
Target mate
Additional rotation angle (radian)
Additional offset in x direction
Additional offset in y direction
Additional offset in z direction
Numeration mode

In This Topic
    WindowMacro(WindowMacro,Int32,PointMate,Mate,Double,Double,Double,Double,NumerationMode) Method
    In This Topic
    Places a window macro with snapping source mate to a target mate from another object.
    Syntax

    Parameters

    Parameter NameDescription
    oMacroObject with opened macro.
    nVariantIndex of the macro variant to be placed (0 based).
    oSourceMateGiven mate of a macro
    oTargetMateTarget mate
    dRotationAngleAdditional rotation angle (radian)
    dXAdditional offset in x direction
    dYAdditional offset in y direction
    dZAdditional offset in z direction
    nNumerationModeNumeration mode

    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
    The position and/or orientation of the associated placements changes after the snapping, in a way that the macro's source mate in the same position as a target mate.
    See Also