Abaqus Python Scripting : NameErrors

Hello All,

I am currently working with Abaqus Viewer Scripting in Python to systematically open multiple odb files and produce images of the von mises contour.

 

 I am using the built in macro manager to aid with the scripting process by extracting relevant code from macros to my script specifically : 

         session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable( variableLabel='S', outputPosition=INTEGRATION_POINT, refinement=( INVARIANT, 'Mises'), )

and

        session.viewports['Viewport: 1'].odbDisplay.display.setValues(plotState=( CONTOURS_ON_UNDEF, ))

My issue is related to the  "CONTOURS_ON_UNDEF" and "INTEGRATION_POINT" where abaqus keeps indicating a NameError.

 

Can someone help me in regards to this issue.

 

Regards