I recently experienced some troubles in adding a table from a specific folder to the TOC using a Python script. Any idea on how can I solve this?

  • 2
    can you better explain your issue? the better your question, the better your answers. – Craig Mar 1 '13 at 16:28
  • my problem is that, using a python script, I'd like to add a table view to the TOC once created because I found that evenif the script creates the tableView in the workspace folder, the same table is not autmatically added to the TOC and other operations on the table cannot be performed. Moreover I have the ArcGIS 10.0 version, so I cannot use the command arcpy.mapping.AddTableView, as correctly suggested by @artwork21.. any ideas? – Annalisa Minelli Mar 14 '13 at 10:20

I'm not sure what error you may be getting, but in general you can use arcpy.mapping.AddTableView to add a standalone table into ArcMap TOC.

  • 1
    @AnnalisaMinelli AddTableView will only be available if you are using ArcGIS 10.1 or later – PolyGeo Mar 2 '13 at 19:43
  • thanks to artwork21 and PolyGeo. My problem was exactly this: I got only ArcGIS 10.0. No way to do this in that version? – Annalisa Minelli Mar 14 '13 at 10:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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