The default curve refinement is "Coarse" for all parts and instances displayed in Abaqus/CAE. Sometimes, it is not good enough to view a part or assembly with those "piecewise continuous curves". The option to refine the curve display locates in menu (Part levels)->View->Part Display Options->Curve refinement. A problem is that if you have many instances, you have to change this option for each individual part in order to have the entire assembly look good. One way to simplify this process is to use script
mdb.models['modelname'].parts['partname'].setValues(geometryRefinement=MEDIUM)
To change the refinement for all parts, just use the following loop:
model=mdb.models['modelname']
for part in model.parts.values():
part.setValues(geometryRefinement=MEDIUM)
Hello, this script works for medium refinement, but I get a NameError when using any other value (FINE, EXTRA_FINE, etc). How do I get this script to work for any refinement level?
ReplyDeletetry adding: from abaqusConstants import * to the top of the script to bring in all abaqus keywords. It fixed the issue for me in ABQ2019
DeleteIt should work. Did you import abaqus constants using "from abaqusConstants import *"?
ReplyDeleteThe display settings can't be stored. So each time I open a cae file, the geometry display restore to coarse. Is there any solution?
ReplyDeleteDid you try to save the display options: File->Save Display Options..
ReplyDeleteIf it doesn't work, you can add those lines to abaqus environment file (abaqus_v6.env) so they will be executed every time when Abaqus/CAE is loaded.
Hello,
ReplyDeleteit doesn't work if I copy thes lines in the abaqus_v6.env.
I tried to modify it a little bit like this:
from abaqusConstants import *
for model in mdb.models.values():
for part in model.parts.values():
part.setValues(geometryRefinement=EXTRA_FINE)
But it doesn't work either.
Do you have another solution?