Monday, March 25, 2013

Refine the part display in Abaqus/CAE

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)

6 comments:

  1. 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?

    ReplyDelete
    Replies
    1. try adding: from abaqusConstants import * to the top of the script to bring in all abaqus keywords. It fixed the issue for me in ABQ2019

      Delete
  2. It should work. Did you import abaqus constants using "from abaqusConstants import *"?

    ReplyDelete
  3. The display settings can't be stored. So each time I open a cae file, the geometry display restore to coarse. Is there any solution?

    ReplyDelete
  4. Did you try to save the display options: File->Save Display Options..
    If 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.

    ReplyDelete
  5. Hello,
    it 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?

    ReplyDelete