+ Reply to Thread
Results 1 to 3 of 3

Thread: editing text in data frame

  1. #1
    Matt Millard
    Join Date
    Apr 2010
    Posts
    9
    Points
    0
    Answers Provided
    0


    0

    Default editing text in data frame

    Greetings,

    I think the answer is no, but I have to ask anyway.

    The situation - we have produced about 150 maps for a report. At this point, someone has realized that we shouldn't be calling a particular road X Road. That is an old and informal name. Instead we should be calling it Y Road. The road name is annotation in the data frame, not an attribute of the road feature class. We are not too keen on opening up every map and doing this edit manually.

    The question - I know it is possible with Python to access and update text strings in the layout, but is it possible to access/edit text strings in the data frame?

    Thanks.

    Matt

  2. #2
    Kim Ollivier
    Join Date
    Oct 2009
    Posts
    589
    Points
    130
    Answers Provided
    10


    0

    Default Re: editing text in data frame

    What were you thinking! GIS is supposed to be a "database approach to mapping", so to be able to manipulate data it needs to be in a database, as annotation tables as a minimum. Well never mind.

    The best thing to do would be to use the tool on the Drawing toolbar to 'Convert Graphics to Features' (annotation features). Then you can make a single feature layer and use that instead of the graphics. The text content can be edited in the feature table just like any other featureclass. You will have to use the interactive tool unless you use ArcObjects to get access to the tool, which is not directly supported in ArcPy.

    Perhaps you can automate the 150 maps into one MXD with data driven pages? Then you would only have to open one MXD to fix it.
    Last edited by kimo; 05-04-2012 at 04:29 PM.
    Kim Ollivier (EADP101)
    www.ollivier.co.nz kimo@ollivier.co.nz
    "Everywhere is within walking distance
    if you have the time", Steven Wright

  3. #3
    Jeffrey Barrette

    Join Date
    Oct 2009
    Posts
    712
    Points
    201
    Answers Provided
    64


    0

    Default Re: editing text in data frame

    You could do this with ArcObjects. Elements added to the data frame can be retrieved and modified via the graphic elements interface. The last sample in the like below shows how to add a new map element. In you case, you simply want to find and change an existing element.

    http://help.arcgis.com/en/sdk/10.0/a...000001rv000000

    It would be convienient if we could find/replace map elements via arcpy. You may want to add it to the ideas site.

    Jeff

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts