Using Compose to write scripts for Simlab
Hello,
I am trying to run a script for Simlab using the Python IDE in Compose. I run into issues with the very first line of code where I call: from hwx import simlab
I get an error in the Python window of Compose:
ImportError: cannot import name 'simlab' from 'hwx' (C:\Program Files\Altair\2025\Compose2025\hwx\scripts\python\hwx_init_.pyc)
Could you please suggest what could be the potential issue? I have Simlab and Compose 2025 installed on my system.
Thank you
@aashishahuja i assume you are using standalone compose and not from inside simlab? correct?
if you are using standalone Compose, you wont be having Simlab Access to execute your python script.
You can use Compose as an IDE from inside Simlab for creating,editing, debugging your simlab python script, here is the help pdf demonstrating steps on how to use.
@aashishahuja i assume you are using standalone compose and not from inside simlab? correct?
if you are using standalone Compose, you wont be having Simlab Access to execute your python script.
You can use Compose as an IDE from inside Simlab for creating,editing, debugging your simlab python script, here is the help pdf demonstrating steps on how to use.
i believe Compose does not have direct access to SimLab APIs. So you can use it to write the code, but not run it directly, except launching the code in SL directly.