SysML2ProjectManager#
- class ansys.sam.sysml2.builder.sysml2_project_manager.SysML2ProjectManager(connector: ansys.sam.sysml2.api.sysml2_api_connector.SysML2APIConnector)#
Provides the director class for loading and managing projects.
Overview#
Get all projects of the connected user. |
|
Get a SysML project with its ID from the API and map it in a Python object. |
|
Get a scripting project with its ID from the API and map it in a Python object. |
|
Create a new project on the server and return it as a SysML Project. |
|
Create a new project on the server and return it as a Scripting Project. |
|
Delete the project with the given ID. |
|
Update the project with the given ID. |
Import detail#
from ansys.sam.sysml2.builder.sysml2_project_manager import SysML2ProjectManager
Method detail#
- SysML2ProjectManager.get_sysml_project(project_id: str) ansys.sam.sysml2.classes.project.Project#
Get a SysML project with its ID from the API and map it in a Python object.
- SysML2ProjectManager.get_scripting_project(project_id: str) ansys.sam.sysml2.classes.scripting_project.ScriptingProject#
Get a scripting project with its ID from the API and map it in a Python object.
- SysML2ProjectManager.create_sysml_project(name: str, description: str = 'Project description') ansys.sam.sysml2.classes.project.Project#
Create a new project on the server and return it as a SysML Project.
- SysML2ProjectManager.create_scripting_project(name: str, description: str = 'Project description') ansys.sam.sysml2.classes.scripting_project.ScriptingProject#
Create a new project on the server and return it as a Scripting Project.