Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
FEA way said:To do this you would have to run a Python script (at startup) that will first wait for the command used to open database (openMdb or session.openOdb) and then execute the command used to change working directory (os.chdir).
Mustaine3 said:This is done automatically when you start A/CAE via command line in the folder that you want to have as work dir. I assume you work with Windows. Use the Windows Explorer, go into the folder and do shift+RMB -> Open command window here. As an alternative you can type CMD into the address bar of the Win Explorer. In the command window then just type 'abaqus cae' or 'abaqus view' to start the pogram.
import os
from abaqus import *
def doIt():
#print("Current WD:",os.getcwd())
fullFilePath=mdb.pathName
path=os.path.dirname(fullFilePath)
#print('Path ',path)
os.chdir(path)
print("New WD:"+ '//' + mdb.pathName)
DanStro said:Here's a script that I wrote to do this, sort of. It's not automatic, and I am not sure you can make it run automatically any time you open a new cae. To get around that I've attached it to a button and then put the button om my toolbar. It works for me maybe it'll work for you.