Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

label related table - in one staked label

$
0
0
Hello all,

I am hoping someone who knows python can figure this out. I have a similar posting here http://forums.arcgis.com/threads/688...d-table-labels . There was an old arcscripts that worked at 9.3 here http://arcscripts.esri.com/details.asp?dbid=12298

I have been able to create a new feature class from using the Make Query Table tool that has all of my related values for my points in one feature class. What I really need know is a way to create one balloon label for each point that is a staked label of all of the related table values. Can I do this with python code or a label expression somehow? In some cases I have 6 or more balloon labels for each of my points and they are overlapping and hard to read.

I am attaching a screen shot of my map book as it is labeled with the many labels for each point. Then I am showing the table that the labels are coming from - showing the many assemblies for each pole.

The last thing I will add is an idea of python labeling code. This python label expression doesn't work but I thought maybe someone out there who knew code better than me could get it to work.

Code:

def FindLabel ( [FIBER_ASSEMBLY_UNITS_ASSEMBLY_UNIT], [POLE_PRIKEY]  ):
  if long( [POLE_PRIKEY] ) = long( [POLE_PRIKEY] ):
    return [FIBER_ASSEMBLY_UNITS_ASSEMBLY_UNIT] + '\n' + [FIBER_ASSEMBLY_UNITS_ASSEMBLY_UNIT] + '\n'  + [FIBER_ASSEMBLY_UNITS_ASSEMBLY_UNIT]
  else:
    return [FIBER_ASSEMBLY_UNITS_ASSEMBLY_UNIT]

I appreciate any help!
Thank you,
Attached Thumbnails
Click image for larger version

Name:	table_showing_manyAssembliestoOnePole.jpg‎
Views:	N/A
Size:	89.7 KB
ID:	19769   Click image for larger version

Name:	relatedTable_map_books_labels.jpg‎
Views:	N/A
Size:	120.8 KB
ID:	19770  

Viewing all articles
Browse latest Browse all 2485

Latest Images

Trending Articles



Latest Images