Hello Iffat,
I ran into a similar problem with accessing the Floor.Name property
and wrote a small blog post about it:
http://darenatwork.blogspot.ch/2012/10/rps-script-to-print-list-of-floor-types_1719.html
I think you can try to do this too:
# get Room.Name property instead of the stupid "Attribute error" message
Element.Name.GetValue(your_room_object)
I have not got around to poking in the RevitAPI.dll yet, but I suspect
the way the Revit dll is produced (with Revit not being a C#
application) might be the reason for this - IronPython is getting some
IL that it doesn't quite understand and therefore needs to be told how
to retrieve the property. But this is just a wild guess on my part and
I will check into it if I find time...
Regards,
Daren