from abaqus import * from abaqusConstants import * from caeModules import * from math import * session.Path(name='Path-Edge', type=EDGE_LIST, expression=(('PART-1-1', ((1, 3, 4, 1), (7, 3, 4, 1), (13, 3, 4, 1), (19, 3, 4, 1), (25, 3, 4, 1), (31, 3, 4, 1), (37, 3, 4, 1), (43, 3, 4, 1), (49, 3, 4, 1), (55, 3, 4, 1), (61, 3, 4, 1), (67, 3, 4, 1), (73, 3, 4, 1), (79, 3, 4, 1), (85, 3, 4, 1), (91, 3, 4, 1), (97, 3, 4, 1), (103, 3, 4, 1), (109, 3, 4, 1), (115, 3, 4, 1), )), )) print '\nPath created\n' session.viewports['Viewport: 1'].odbDisplay.setPrimaryVariable( variableLabel='S', outputPosition=INTEGRATION_POINT, refinement=(INVARIANT, 'Mises')) xyp = session.XYPlot('XYPlot-1') chartName = xyp.charts.keys()[0] chart = xyp.charts[chartName] pth = session.paths['Path-Edge'] xy1 = xyPlot.XYDataFromPath(path=pth, includeIntersections=False, projectOntoMesh=False, pathStyle=PATH_POINTS, numIntervals=10, projectionTolerance=0, shape=DEFORMED, labelType=TRUE_DISTANCE) c1 = session.Curve(xyData=xy1) chart.setValues(curvesToPlot=(c1, ), ) session.viewports['Viewport: 1'].setValues(displayedObject=xyp) print '\nPlot created\n'