Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to export the report file

Status
Not open for further replies.

KimLe

Civil/Environmental
Oct 3, 2017
1
Hi, I am using the following code to extract data from .ODB file to the report file in command prompt window. No error was reported but the report .rpt file is not written into my work directory. Has anyone come across this problem before? Thanks

from abaqus import *
from abaqusConstants import *
from viewerModules import *
from driverUtils import executeOnCaeStartup
executeOnCaeStartup()
o2 = session.openOdb(name='E:/tempo/MCC-V-100.odb')
session.viewports['Viewport: 1'].setValues(displayedObject=o2)
odb = session.odbs['E:/tempo/MCC-V-100.odb']
session.xyDataListFromField(odb=odb, outputPosition=NODAL, variable=(('RF',
NODAL, ((COMPONENT, 'RF2'), )), ('U', NODAL, ((COMPONENT, 'U2'), )), ),
nodeSets=('SETRP', ))
x0 = session.xyDataObjects['RF:RF2 PI: ASSEMBLY N: 1']
x1 = session.xyDataObjects['U:U2 PI: ASSEMBLY N: 1']
session.writeXYReport(fileName='E:/tempo/abaqus.rpt', xyData=(x0, x1))
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor