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

In This Topic
    ProjectManager Class
    In This Topic
    This class manages P8 projects. Allows doing such operations as copy, open, remove, check existence of a project having given path 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 += "\\ESS_Sample_Project.elk";
    string strTemplatePath = new ProjectManager().Paths.Templates;
    strTemplatePath += "\\ESS_Sample_Project.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 if projects accessed by CurrentProject and  
    Public PropertyReturns list of all open projects.  
    Public PropertyReturns PathInfo object. It is intended to provide information about default Eplan P8 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 schemas 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