ProjectCenter is the representation of a LogiKal project-center. The children are of type Project. The children can be received from the InfoList (CoreObject<T>.Infos). Each ProjectCenter belongs to a fixed directory. To use another project directory, create a new project center using method GetProjectCenter.
More...
ProjectCenter is the representation of a LogiKal project-center. The children are of type Project. The children can be received from the InfoList (CoreObject<T>.Infos). Each ProjectCenter belongs to a fixed directory. To use another project directory, create a new project center using method GetProjectCenter.
◆ CopyProjectFrom()
| ProjectInfo Ofcas.Lk.Api.Core.ProjectCenter.CopyProjectFrom |
( |
ProjectInfo |
projectInfo, |
|
|
string |
newProjectName |
|
) |
| |
Copies a project and its elevations.
- Parameters
-
| projectInfo | The info of the project to copy. |
| newProjectName | The new project name of the copy. If no name is defined the name from the given projectInfo will be used |
- Returns
- The ProjectInfo to the created project
- Exceptions
-
| Exception | contains api error message |
◆ CreateDirectory()
Creates a new directory in the current project center.
- Parameters
-
| directoryName | The name of the directory to be created. |
- Returns
- Returns the ProjectDirectoryInfo for the directory.
- Exceptions
-
| ArgumentNullException | Occurs if the directory name is null or empty. |
| InvalidOperationException | Occurs if the directory could not be found after refresh. |
| NotSupportedException | Occurs if the directory could not be found after refresh. |
◆ CreateLkProject()
| ProjectInfo Ofcas.Lk.Api.Core.ProjectCenter.CreateLkProject |
( |
string |
projectName | ) |
|
Creates a new Project in the LogiKal project structure. The project will be created in the current active directory.
- Parameters
-
| projectName | The name of the new project |
- Returns
- The ProjectInfo to the created project
- Exceptions
-
| Exception | contains api error message |
◆ DeleteLkProject()
| void Ofcas.Lk.Api.Core.ProjectCenter.DeleteLkProject |
( |
ProjectInfo |
projectInfo | ) |
|
Deletes the corresponding logikal project based on the given information data.
- Parameters
-
| projectInfo | The project information |
◆ GetProject()
Returns the corresponding project based on the given information data.
- Parameters
-
| projectInfo | The project information obtained through the CoreObject<T>.Infos function. |
- Returns
- the Project
- Exceptions
-
| Exception | If getting elevation failed. |
◆ GetProjectCenter()
Creates a new ProjectCenter for the given directory. Each ProjectCenter belongs to a fixed directory.
- Parameters
-
| projectDirectoryInfo | The project directory to use |
- Returns
- The new ProjectCenter
- Exceptions
-
| Exception | if creating project-center failed (for example invalid directory) |
◆ MoveLkProjectFrom()
| ProjectInfo Ofcas.Lk.Api.Core.ProjectCenter.MoveLkProjectFrom |
( |
ProjectInfo |
projectInfo, |
|
|
string |
newProjectName |
|
) |
| |
Moves a project to this project center based on the given project info and the new project name.
- Parameters
-
| projectInfo | The information of the project. |
| newProjectName | The name for the moved project. |
- Returns
- Returns the new project info.
◆ OwnDirectoryInfo
Returns the directory info for the project-center
The documentation for this class was generated from the following file:
- Ofcas.Lk.Api.Core/ProjectCenter.cs