ProjectService
Canonical path: NemAll_Python_BaseElements.ProjectService
Utility for processing the Allplan project
This utility class provides methods for processing the Allplan project, such as switching between projects or getting the project path.
Methods:
-
CloseAllplan–Close Allplan
-
GetCurrentProjectNameAndHost–Get the project and host name
-
GetCurrentUserAsBwsPath–Get the current user as BWS path
-
GetProjectPath–Get the project path
-
OpenProject–Open the project
GetCurrentProjectNameAndHost
staticmethod
GetCurrentProjectNameAndHost() -> tuple
GetCurrentUserAsBwsPath
staticmethod
Get the current user as BWS path
Returns:
-
str–User as BWS path
GetProjectPath
staticmethod
GetProjectPath(projectName: str, hostName: str) -> tuple
Get the project path
Parameters:
-
hostName(str) –Host name
-
projectName(str) –Project name
Returns:
-
tuple–tuple(Error, project path)
OpenProject
staticmethod
OpenProject(hostName: DocumentAdapter, projectName: str, doc: str) -> str
Open the project
Parameters:
-
doc(str) –Document
-
hostName(DocumentAdapter) –Host name
-
projectName(str) –Project name
Returns:
-
str–String with the result the attempt to open the project. Possible results are:
- Active project
- Project not exist
- Not possible to open the project
- Project opened
Placeholder