You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when using examples/00_run_script/ten_bar_truss/files/ten_bar_truss_apdl.wbpz file (included in examples.get_files("ansys_workbench_ten_bar_truss")[1][0]), Workbench is not able to run the project
📝 Steps to reproduce
import logging
logging.basicConfig(level=logging.DEBUG)
from ansys.optislang.core import Optislang
from ansys.optislang.core.nodes import IntegrationNode, DesignFlow
import ansys.optislang.core.node_types as node_types
import pathlib
import tempfile
import ansys.optislang.core.examples as examples
script_dir = pathlib.Path(__file__).parent.absolute()
projects_topdir = script_dir / 'projects'
project_dir = pathlib.Path(tempfile.mkdtemp(dir=projects_topdir))
osl_project = project_dir / 'osl_project.opf'
osl = Optislang(ini_timeout=240)
osl.application.save_as(file_path=osl_project)
logging.debug(f'writing to {osl_project}')
# Create the algorithm system of your choice.
root_system = osl.application.project.root_system
wb_node: IntegrationNode = root_system.create_node(
name='WB',
type_=node_types.awb2_plugin,
design_flow=DesignFlow.RECEIVE_SEND
)
# print(wb_node.get_properties().keys())
wb_node.set_property(
name="WorkbenchProjectFile",
value={
"path": {
"base_path_mode": {"value": "ABSOLUTE_PATH"},
"split_path": {"head": "", "tail": str(examples.get_files("ansys_workbench_ten_bar_truss")[1][0])},
}
},
)
wb_node.load()
wb_node.register_locations_as_parameter()
wb_node.register_locations_as_response()
osl.application.project.start(wait_for_finished=True)
osl.application.save()
🔍 Before submitting the issue
🐞 Description of the bug
when using
examples/00_run_script/ten_bar_truss/files/ten_bar_truss_apdl.wbpz
file (included inexamples.get_files("ansys_workbench_ten_bar_truss")[1][0]
), Workbench is not able to run the project📝 Steps to reproduce
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
use Ansys 2024R2 and 2025R1 products
🐍 Which Python version are you using?
3.9
📦 Installed packages
The text was updated successfully, but these errors were encountered: