Guest User

Untitled

a guest
Jan 24th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. import arcpy
  2.  
  3. testabc = r"in_memorytestabc"
  4. myTable = "mytable"
  5. in_memory = "in_memory"
  6.  
  7. output = arcpy.TableToTable_conversion(myTable, in_memory, "testabc", "", "", "")
  8.  
  9. arcpy.SetParameter(0, output)
  10.  
  11. import arcpy
  12.  
  13. mxd = arcpy.mapping.MapDocument("CURRENT")
  14. df = mxd.activeDataFrame
  15.  
  16. testabc = r"in_memorytestabc"
  17. myTable = "mytable"
  18. in_memory = "in_memory"
  19.  
  20. arcpy.TableToTable_conversion(myTable, in_memory, "testabc", "", "", "")
  21.  
  22. mytableview = arcpy.mapping.TableView(testabc)
  23. arcpy.mapping.AddTableView(df, mytableview)
  24.  
  25. arcpy.RefreshTOC()
Add Comment
Please, Sign In to add comment