jhodel@cloudpointgeo.com

update Graphic Tables in ArcMap 10.0

Discussion created by jhodel@cloudpointgeo.com on Sep 24, 2012
Latest reply on Sep 25, 2012 by jbarrette-esristaff
I am trying to update tables populated with water valve information for those valves in the current extent of the data driven page.  I have everything working except my "Location" column is too long and I need to decrease font size and adjust line spacing to make it fit.  Any suggestions on how to do this?


#Clear all table text values

tab1Col1Value = ""
tab1Col2Value = ""
tab1Col3Value = ""

for row in Valves_outputrows:
  tab1Col1Value += str(row.Valve_ID) + "\n"
  tab1Col2Value += str(row.vDiameter) + "\n"
  tab1Col3Value += str(row.vdescription) + "\n"

tab1Col1Txt.text = tab1Col1Value
tab1Col2Txt.text = tab1Col2Value
tab1Col3Txt.text = tab1Col3Value

#elmWidth = 2.5
#elmText = tab1Col3Txt.text
#elm = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "Table1Column3")[0]
#x = 10
#elm.text = '<FNT name='Arial' size=' + str(x) + '>' + elmText + '</FNT>'
#while elm.elementWidth > float(elmWidth):
#    elm.text = '<FNT name="Arial" size="' + str(x) + '">' + elmText + '</FNT>'
#    x = x - 1
[ATTACH=CONFIG]17932[/ATTACH]

Attachments

Outcomes