API Help
EPLAN API / API Reference / Interactions / XMIaInsertMacro
In This Topic
    XMIaInsertMacro
    In This Topic
    imports a macro to the current project
    Parameter Description

    filename

    filename of macro that should be inserted; if this parameter is empty, a FileSelect- Dialog opens
    

    variant

    variant of macro that should be inserted; value range [0-15];
                                            0  - variant A
                                            1  - variant B
                                            2  - variant C
                                            3  - variant D
                                            4  - variant E
                                            5  - variant F
                                            6  - variant G
                                            7  - variant H
                                            8  - variant I
                                            9  - variant J
                                            10 - Variant K
                                            11 - variant L
                                            12 - variant M
                                            13 - variant N
                                            14 - variant O
                                            15 - variant P
    

    RepresentationType

    representation type of macro that should be inserted; value range [1-13]
                                            1 - MultiLine
                                            2 - SingleLine
                                            3 - PairCrossReference
                                            4 - Overview
                                            5 - Graphics
                                            6 - ArticlePlacement
                                            7 - PI_FlowChart
                                            8 - Fluid_MultiLine
                                            9 - Cabling
                                            10 - ArticlePlacement3D
                                            11 - Functional
                                            12 - Planning
                                            12 - FluidFunctionalOverview
    

    Example
    XGedStartInteractionAction /Name:XMIaInsertMacro /filename:"?"