Eplan Platform API
EPLAN API / User Guide / API DataModel / API Pre-planning / Pre-planning macro
In This Topic
    Pre-planning macro
    In This Topic

    For Pre-planning module, there was created a new class which represents macros : PrePlanningMacro

    Creating these macros is following :

    C#
    Copy Code
    string strMacroPath = m_oDir.FullName + "\\TestMacro.emv";
    PrePlanningMacro oPrePlanningMacro = new PrePlanningMacro();
    oPrePlanningMacro.Create(new[] {oPlanningSegment1, oPlanningSegment2}, strMacroPath, oMultiLangString);
    

                       

    Inserting macros requires such parameters as parent planning segment, path to macro and project object :

    C#
    Copy Code
    string strMacroPath = m_oDir.FullName + "\\TestMacro.emv";
    StorableObject[] arrInsertedPlaObjects = new Insert().PrePlanningMacro(strMacroPath, m_oTestProject, oPlanningSegment1);