Changing the workspace in the script

Changing the workspace in the script

pvitorvilaca
Observer Observer
453 Views
1 Reply
Message 1 of 2

Changing the workspace in the script

pvitorvilaca
Observer
Observer

Is it possible for the script to perform a workspace change? After generating the part, I would like the script to also perform its simulation. Does anyone know how to do this?

0 Likes
Accepted solutions (1)
454 Views
1 Reply
Reply (1)
Message 2 of 2

kandennti
Mentor
Mentor
Accepted solution

Hi @pvitorvilaca -San.

 

For files for which I have done simulation work before, this allows me to switch.

        ws: core.Workspace = ui.workspaces.itemById("SimulationEnvironment")
        ws.activate()


However, with new files, it stops at this screen and I could not figure out how to work around it.

1.png


Finally, one more piece of bad news: simulation is not supported by the API.

0 Likes