System.Object
Eplan.EplApi.DataModel.ProjectManager
System.Object
Eplan.EplApi.DataModel.ProjectManager
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);
Name | Description | |
---|---|---|
ProjectManager Constructor | Constructor. |
Name | Description | |
---|---|---|
CurrentDatabaseVersion | Current database version provided by this software. | |
CurrentProject | ProjectManager'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. | |
LockProjectByDefault | Returns if projects accessed by CurrentProject and | |
OpenProjects | Returns list of all open projects. | |
Paths | Returns PathInfo object. It is intended to provide information about default Eplan P8 paths. |
Name | Description | |
---|---|---|
CanOpenReadOnly | Checks if project can be opened for read-only access without data upgrade. | |
CopyProject | Copies project. | |
CreateProject | Create project with given name. | |
Dispose | Virtual deterministic destructor. | |
ExistsProject | Check if project placed on given path exist. | |
GetCurrentProjectWithDialog | Gets current project. If there are more than one project open, then displays a dialog to let user choose a current one. | |
GetProject | Gets an already open project. | |
GetProjectByObjectId | Gets the project of an object id string. This is the project the object belongs to. | |
GetProjectDatabaseVersion | Project database version. | |
GetProjectDataCompatibility | Compares database schemas from current and given project. In the result of this check project could ok , need upgrade or just be incompatible. | |
OpenProject | Overloaded. Opens a project in the requested mode if possible. | |
RemoveProject | Removes project | |
UpgradeProjectDatabase | Overloaded. 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). |