Eplan Platform API
Eplan.EplApi.DataModel Namespace / ProjectManager Class
Members Example

In This Topic
    ProjectManager Class
    In This Topic
    The class enables basic operations on Eplan Platform projects (open, copy, remove, etc)
    Inheritance Hierarchy

    System.Object
       Eplan.EplApi.DataModel.ProjectManager

    Syntax
    public class ProjectManager 
    public ref class ProjectManager 
    Example
    string strProjectPath = new ProjectManager().Paths.Projects;
    strProjectPath += "\\ExampleProject.elk";
    string strTemplatePath = new ProjectManager().Paths.Templates;
    strTemplatePath += "\\IEC_tpl001.ept";
    Project newProject = new ProjectManager().CreateProject(strProjectPath, strTemplatePath);
    Public Constructors
     NameDescription
    Public ConstructorConstructor.  
    Top
    Public Properties
     NameDescription
    Public PropertyCurrent database version provided by this software.  
    Public PropertyProjectManager's property which returns first project from the list of opened projects. Please use Eplan::EplApi::HeServices::SelectionSet class in order to get the selected project, or other selected objects.  
    Public PropertyReturns whether project(s) are locked by default  
    Public PropertyReturns list of all open projects.  
    Public PropertyReturns PathInfo object. It is intended to provide information about default Eplan Platform paths.  
    Top
    Public Methods
     NameDescription
    Public MethodChecks if project can be opened for read-only access without data upgrade.  
    Public MethodCopies project.  
    Public MethodCreate project with given name.  
    Public MethodVirtual deterministic destructor.  
    Public MethodCheck if project placed on given path exist.  
    Public MethodGets current project. If there are more than one project open, then displays a dialog to let user choose a current one.  
    Public MethodGets an already open project.  
    Public MethodGets the project of an object id string. This is the project the object belongs to.  
    Public MethodProject database version.  
    Public MethodCompares database schemes from current and given project. In the result of this check project could ok , need upgrade or just be incompatible.  
    Public MethodOverloaded. Opens a project in the requested mode if possible.  
    Public MethodRemoves project  
    Public MethodOverloaded. Upgrades project. You can check if project need to be upgrade by GetProjectDataCompatibility. Method makes a copy of old project and sets name to (OldProjectName)(V2).(extension).  
    Top
    See Also