API Help
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

    oMacro
    Object with opened macro.
    nVariant
    Index of the macro variant to be placed (0 based).
    oSourceMate
    Given mate of a macro
    oTargetMate
    Target mate
    dRotationAngle
    Additional rotation angle (radian)
    dX
    Additional offset in x direction
    dY
    Additional offset in y direction
    dZ
    Additional offset in z direction
    nNumerationMode
    Numeration mode

    Return Value

    Inserted placements
    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.
    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