Skip to content

How can I set up a working directory? #798

Closed Answered by dipinknair
ufsaa2022 asked this question in Q&A
Discussion options

You must be logged in to vote

@ufsaa2022 The application creates temporary files in this folder until you save your project. Once saved, the application writes files to the project directory. Launch Mechanical using remote session as below

import ansys.mechanical.core as pymechanical

mechanical = pymechanical.launch_mechanical()

here mechanical has property project_directory which can be accessed with mechanical.project_directory
If you want to change the temp folder you have to save the files in your desired folder.

Please checkout this example. https://examples.mechanical.docs.pyansys.com/examples/technology_showcase/example_05_td_026.html#initialize-variable-for-workflow

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dipinknair
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants