DanStro
Mechanical
- Dec 11, 2004
- 393
I am trying to write a script that creates some XY data from node sets in an odb. Using the rpy file I came up with the script below. But when I try to run it I am getting an error that the name "COMPONENT" doesn't exist. As far as I can tell, from both the rpy file and the scripting section of the help docs, this is correct. In case it matters the error is flagged on the line where I am defining 'var'.
Can anyone point me to what I am doing wrong?
Thanks,
Dan
Can anyone point me to what I am doing wrong?
Python:
import odbAccess
odb = session.odbs['E:/AbaqusWork/_Practice/Scripting/SurfNodeReport/jbSurfNodeReport.odb']
var=(('COORD', NODAL, ((COMPONENT, 'COOR2'), )), )
session.xyDataListFromField(odb=odb, outputPosition=NODAL, variable=var, nodeSets=("PART-1-1.BOTTOM", ))
print('done')
Thanks,
Dan