The following example can be used as a basis of either the solve or evaluate script.
def runClassDemo_Attributes():
#Loop around all attribute group objects
for AGIterator in DesignAssessment.AttributeGroups():
for AttributeIterator in AGIterator.Attributes():
#Get info about the attribute
print "Attribute Name = " + AttributeIterator.AttributeName
print "Value via ValueAsInt = " + str(AttributeIterator.ValueAsInt)
print "Value via ValueAsDouble = " + str(AttributeIterator.ValueAsDouble)
print "Value via ValueAsString = " + AttributeIterator.ValueAsString
print "No Elements in Selection = " + str(AttributeIterator.SelectedElementCount)
print "1st Element in Selection = " + str(AttributeIterator.SelectedElements()[0])
print "No of Nodes in Selection = " + str(AttributeIterator.SelectedNodeCount)
print "First Node in Selection = " + str(AttributeIterator.SelectedNodes()[0])
runClassDemo_Attributes()