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

WindowMacro(WindowMacro,Int32,PointMate,Mate,Double,Double,Double,Double,NumerationMode,Boolean) Method
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

oMacro
Object with opened macro.
nVariant
Index of the macro variant to be placed (0 based).
oSourceMate
given mate of 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
bUseSourceMateOnPlacementArea
if 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..
Null was set to a parameter.
An error occurred during inserting the macro. Please refer to the error message.
See Also