The following example can be used as a basis of either the solve or evaluate script.
def runClassDemo_DAElement():
#Loop around all element objects.
for ElementIterator in DesignAssessment.MeshData.Elements():
#General info:
print "Element Description = " + ElementIterator.Description
print "Element Id = " + str(ElementIterator.Id)
# Information about the nodes of the element
print "Number of connected Nodes = " + str(ElementIterator.NodeCount)
NodeIdArray = ElementIterator.NodeIds()
print NodeIdArray
ConnectedNodeObjects = ElementIterator.Nodes()
#Cross Section Data is only available for beams.
#First test to see if it's a beam as they support it.
if 'Beam' in ElementIterator.Description:
XSectionDataObj = ElementIterator.CrossSectionData
#Element Thickness only applies to some elements, returns 0.0 if not supported.
print "Element Thickness = " + str(ElementIterator.ElementThickness)
ThicknessAtNode = ElementIterator.ElementThicknessAtNode(NodeIdArray[0])
print "Thickness at Node Id " + str(NodeIdArray[0]) + " = " + str(ThicknessAtNode)
runClassDemo_DAElement()