SysML2ProjectBuilder#
- class ansys.sam.sysml2.builder.sysml2_project_builder.SysML2ProjectBuilder(connector: ansys.sam.sysml2.api.sysml2_api_connector.SysML2APIConnector)#
Provides the SysML2 project builder.
Overview#
Call the API with the specified project ID and build the SysML project from JSON. |
|
Call the API with the specified project ID and build the scripting project from JSON. |
|
Parse all project elements, extract the root element, and update names. |
|
Filter and check root packages for SysML projects. |
|
Filter and check root packages for Scripting project. |
|
Update the element with inherited elements. |
|
Clear all inherited elements in the element. |
|
Reload the project and update all its elements. |
Import detail#
from ansys.sam.sysml2.builder.sysml2_project_builder import SysML2ProjectBuilder
Method detail#
- SysML2ProjectBuilder.build_sysml_project(project_id: str) ansys.sam.sysml2.classes.project.Project#
Call the API with the specified project ID and build the SysML project from JSON.
- SysML2ProjectBuilder.build_scripting_project(project_id: str) ansys.sam.sysml2.classes.scripting_project.ScriptingProject#
Call the API with the specified project ID and build the scripting project from JSON.
- SysML2ProjectBuilder.extract_root_and_check_names(project: ansys.sam.sysml2.classes.project.Project | ansys.sam.sysml2.classes.scripting_project.ScriptingProject)#
Parse all project elements, extract the root element, and update names.
- SysML2ProjectBuilder.filter_and_add_sysml_element(element: ansys.sam.sysml2.meta_model.element.Element, roots: List)#
Filter and check root packages for SysML projects.
- Parameters:
- element
Element Element to check.
- roots
List List of root packages.
- element
- SysML2ProjectBuilder.filter_and_add_scripting_element(element: ansys.sam.sysml2.classes.sysml_element.SysMLElement, roots: List)#
Filter and check root packages for Scripting project.
- Parameters:
- element
SysMLElement Element to check.
- roots
List List of root packages.
- element
- SysML2ProjectBuilder.update_element(element)#
Update the element with inherited elements.
- Parameters:
- element
SysMLElement The element to update.
- element
- SysML2ProjectBuilder.clear_element(ignore_list, element)#
Clear all inherited elements in the element.
- Parameters:
- ignore_list
list List of attributes to ignore when clearing.
- element
SysMLElement The element to clear.
- ignore_list
- SysML2ProjectBuilder.reload_project(modification_observer: ansys.sam.sysml2.observer.observer.ModificationObserver, project: ansys.sam.sysml2.builder.classes.scripting_project_impl.ScriptingProjectImpl)#
Reload the project and update all its elements.
- Parameters:
- modification_observer
ModificationObserver Observer instance.
- project
ScriptingProjectImpl Scripting project instance to reload.
- modification_observer