Thanks FEA way,
I was able to resolve the above mentioned error.
But had difficulty in getting all the parts name from the model.
My goal here is to list all the parts names.
Please see the script below and error while executing it.
TypeError: 'Part' object does not support item assignment
Any help is appreciated.
########################################################################################
######Applying Material and section Properties to the parts####################
########################################################################################
from abaqus import *
from abaqusConstants import *
import regionToolset
vps = session.viewports.values()[0]
x = vps.displayedObject.modelName
m=mdb.models[x]
parts_list =[]
for i in range(25):
p =mdb.models[x].parts.keys()[0]
parts_list.append (i)