Showing posts with label scripting. Show all posts
Showing posts with label scripting. Show all posts

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)