0

I have a python script myscript.py where i read a step file into a new modeldatabase, with the following Code:

from abaqus import *
from abaqusConstants import *
backwardCompatibility.setValues(includeDeprecated=True, reportDeprecated=False)

mdb.Model("Model-1")
stepFile = r"C:\...\file.step"

step = mdb.openStep(stepFile, scaleFromFile=OFF)
Part = mdb.Model["Model-1"].PartFromGeometryFile(combine=False, dimensionality=THREE_D, geometryFile=step,
                                                 name="Part-1", type=DEFORMABLE_BODY)
...

If i run this script in the command line with abaqus cae noGUI=myscript.py i get the error message 'Mdb' object has no attribute 'openStep'

Why is this script not working with noGUI?

If i run the script with abaqus cae script=myscript.py everything runs fine.

Since my automation is a parameter study with a lot of cases i need to get the runtime down -> noGUI.

1
  • Not sure why, but your observation is correct. You can raise this issue in Simulia Forum. here This is the official Forum; you need to create an account and ask question. Nov 24 at 5:31

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.