First you create the path object
newPath=session.Path(name=pathName,type=pathType,expression=inputList)
then having the path created, further you create the
XYData object using something like:
newXYData=session.XYDataFromPath(name=xyName,path=newPath,\
includeIntersections=TRUE,\
shape=DEFORMED,\
labelType=TRUE_DISTANCE,\
step=1,\
frame=1,\
variable=variable)
variable is a tuple of tuples, as an example
variable=(('S', INTEGRATION_POINT, ((INVARIANT, 'Mises' ), )),)
then you need to use
session.writeXYReport(fileName="C:\\blah_blah.txt", xyData=(newXYData,))
Of course, for details about the meaning and allowed values of each argument see
ABAQUS Scripting Reference Manual, more precisely:
Path object:
34.1 Path object
XY Data:
49.1 XYData object
writeXYReport
49.8 writeXYReport