Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I am using ArcGIS 10.1 and I have a non-spatial table and some layers in a Data Frame.

When I switch to Layout View I want to be able to show the map in a data frame element and the table in another element (something that one could do with "Add Table To Layout" from Table Options, but I want to do this in one step without having to go to Table Options).

Is there a way to do this using ArcPy?

I couldn't find any function in the ArcPy library that would create a new Layout Element ... and then I also don't know how to add the contents of the table to the Layout Element.

share|improve this question
    
you can look at the second part of my answer here : gis.stackexchange.com/questions/81986/… , but this is meant for automation, not for interactivity. –  radouxju Feb 6 at 12:44

1 Answer 1

up vote 6 down vote accepted

It is not possible to create a new Layout Element from scratch using ArcPy but since ArcGIS 10.1 you have been able to clone graphic and text elements.

In the GraphicElement (arcpy.mapping) help there is code that shows you how to use cloning to:

construct a graphic table based on data values from a table in the map document.

If you are not keen on using ArcPy to do this then there are a number of ArcGIS Ideas to which I recommend that you add your vote:

share|improve this answer
    
thank you for your answer, I will try it out! –  Raluca Feb 6 at 9:30
1  
Thanks again, I tried it and it works well! However, I think it's crazy to go through all this hassle just to bring a table to the layout view. Plus, I find it annoying that I have to have the lines already in my Layout... –  Raluca Feb 6 at 19:14

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.