API Help
Eplan.EplApi.HEServices Namespace / Insert Class
Members Example

In This Topic
    Insert Class
    In This Topic
    Class for inserting different kinds of external data. The class Insert contains all methods for placing window macros or inserting window macros.
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.HEServices.Insert

    Syntax
    public class Insert 
    public ref class Insert 
    Example
    The following example shows how to use insert a window macro using Insert class Following example shows how to insert page macro with overwriting some pages
    Insert oInsert = new Insert();
    oInsert.WindowMacro("$(MD_MACROS)\\BECK.KL1012.ema", 0, m_oTestProject.Pages[9], new PointD(70.0, 0.0), Insert.MoveKind.Relative);
    
    
    PageMacro oPageMacro = new PageMacro();
    oPageMacro.Open(@"$(MD_MACROS)\1.emp", m_oTestProject);
    
    //set new name to only two pages; rest pages will have default names
    oPageMacro.Pages[1].Name = "=EB3+ET1/2";
    oPageMacro.Pages[3].Name = "=EB3+ET1/3";
    
    //overwrite 2., 3. and 4. page
    Boolean[] arrOverwrite = new Boolean[5] { false, true, true, true, false };
    
    new Insert().PageMacro(oPageMacro, m_oTestProject, arrOverwrite, PageMacro.Enums.NumerationMode.None);
    
    
    Public Constructors
     NameDescription
    Public ConstructorDefault constructor  
    Top
    Public Properties
     NameDescription
    Public PropertyIf true, renumbers PCT loop if name already exists.  
    Public PropertyIndicates whether additional planning objects are inserted from macro into project.  
    Public PropertyIndicates whether planning objects structure will be merged with existing nodes or renumbered and added.  
    Public PropertyDetermines the planning segment to which all function inserted from window macro on page will be assign.  
    Top
    Public Methods
     NameDescription
    Public MethodDestructor  
    Public MethodOverloaded. Inserts a page macro into project. User can specify which pages can be overwritten over existing pages in project.  
    Public MethodInserts the pre-planning macros below the given structure segment.  
    Public MethodOverloaded. Places a symbol macro onto a given position of a page. You can set whether absolute coordinates or coordinates relative to its original position on the page should be used.  
    Public MethodOverloaded. Places a window macro onto a given position of a page. You can set whether absolute coordinates or coordinates relative to its original position on the page should be used.  
    Top
    See Also