Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing the workspace in the script

1 REPLY 1
SOLVED
Reply
Message 1 of 2
pvitorvilaca
211 Views, 1 Reply

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

Changing the workspace in the script

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?

1 REPLY 1
Message 2 of 2
kandennti
in reply to: pvitorvilaca

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

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report