API Help
Eplan.EplApi.HEServices Namespace / Insert3D Class / WindowMacro Method / WindowMacro(WindowMacro,Int32,Placement3D,Matrix3D,MoveKind,NumerationMode) Method
Opened macro object.
Index of the macro variant to be placed (0 based).
Object from EPLAN project to which top most objects from macro will be assigned.
Transformation by which objects from macro will be multiplied.
Determines if the macro will be placed with absolute coordinates or relatively to its original position.
Numeration mode used during inserting objects.

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

    Parameters

    oMacro
    Opened macro object.
    nVariant
    Index of the macro variant to be placed (0 based).
    oParent
    Object from EPLAN project to which top most objects from macro will be assigned.
    oMatrix
    Transformation by which objects from macro will be multiplied.
    nMoveCondition
    Determines if the macro will be placed with absolute coordinates or relatively to its original position.
    nNumerationMode
    Numeration mode used during inserting objects.

    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
    In same cases after inserting 3d macro the absolute transformation of inserted object can be different then the one determined in parameters. This situation can happen when in macro user handle is defined and it is not located in origin of first object from the macro. In this case all objects from macro are placed relative to this user defined handle which is located in given position.
    See Also