Home > python > how to open a layer's table in a map document

how to open a layer's table in a map document

January 25Hits:4
Advertisement

Trying to create a map document programmatically. Added a featureclass as a layer. When I open the map document in ArcMap, I want the table for that layer to be open.

Found TableView (doc) and AddTableView (doc), but these seem to be only for standalone tables. I also looked at the properties for Layer (doc) and for DataFrame (doc) and didn't see methods that looked right.

What I'm shooting for is to double-click on the mxd and have something like image below appear.

how to open a layer's table in a map document

Any ideas?

Thx

Related Articles

  • how to open a layer's table in a map document

    how to open a layer's table in a map documentJanuary 25

    Trying to create a map document programmatically. Added a featureclass as a layer. When I open the map document in ArcMap, I want the table for that layer to be open. Found TableView (doc) and AddTableView (doc), but these seem to be only for standal

  • How to List Tables from current map document (mxd)?November 28

    We have many maps containing Feature Classes and Tables in a Personal Geodatabase that need their information updated. Is there a function to List Tables from the current map document like mxd = arcpy.mapping.MapDocument("Current") arcpy.mapping

  • How to add a layer file to an ArcGIS map document programmatically?October 19

    I want to create a feature layer from a layer (.lyr) file and add it to my ArcGIS map document programmatically. I am using C# and ArcGIS. I have a layer file and a shapefile. --------------Solutions------------- There's a snippet for this in the Arc

  • Layer file data duplicated in map document file?August 7

    I have a map document file (.mxd) with a size of 0.3 MB. I also have two layer files (.lyr), containing large rasters. Together they are 16.2 MB. If I add the two layer files to my map document in ArcMap and save, it becomes 16.5 MB large. This leads

  • How to export layer attribute table to specific worksheet of already existing Excel workbook?December 19

    How to export a feature layer attribute table to a specific worksheet of an already existing Excel workbook? --------------Solutions------------- The Table To Excel (Conversion) tool which was new at ArcGIS 10.2 has the usage below. TableToExcel_conv

  • Cannot see added layer in Table of contents arcgisNovember 18

    I am using a Python script to add a layer to my mxd. Following is the script: mxd = arcpy.mapping.MapDocument(r"C:\Amruta\clustereddata.mxd") df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] print arcpy.mapping.ListLayers(mxd, "

  • Referencing layer in Table of Contents using ArcPy?March 24

    I'm looking for the best way to reference a layer in the TOC using arcpy and, if it is possible, that is different than the following: mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] layers = arcpy.mapping.Li

  • Changing highlight property of layer or table field using ArcPy?July 15

    I need to highlight a field of a layer. With ArcMap it is accessed from Fields property page of a layer. From there one can reorder, hide and highlight the fields. I couldn't find a property or method to change the highlight property of a field. The

  • How to add a tool as a layer in table of contents ArcGIS desktop 10.3

    How to add a tool as a layer in table of contents ArcGIS desktop 10.3August 30

    I have a custom script tool in my toolbox in arcgis. I want to add it as a layer in table of contents so when the map is shared people can have access to it easily. for example as shown in figure When I drag a tool from catalog to contents, it gives

  • Moving Fusion table across the map with drag-and-dropFebruary 12

    I am trying to create a map which will have a fusion layer of fixed size and I can drag and drop it over the countries to compare the size of the fusion layer on each country. This is what I have by now. http://codepen.io/aketi/pen/yeZOVW Can anyone

  • Update layer datasource in multiple map documents using ArcPy?October 13

    I would like to update the data source of a specific layer in multiple map documents using ArcPy, however I'm getting a <type 'exceptions.SyntaxError'>: invalid syntax error on this line: if lyr.datasetName == inputlayer import arcpy, string, os imp

  • How to add a simple WFS layer from GeoServer to OpenLayers map?January 19

    I'm trying to add one of the included datasets with GeoServer to an OpenLayers map. I've followed the OpenGeo tutorials, seen similar thread on here, but I can't seem to crack it. Can somebody take a glance at my code and GeoServer setup and tell me

  • Add layer to open mxd using ArcObjects from outside the map document crashes ArcMapMarch 8

    I have an Access database (MS Access 2010) that allows users to enter a variety of land treatment information including associated points, lines, or polygons which users can select and the database would then load as part of the project, to a master

  • Getting the Field Alias from a layer, from within a Map documentJune 19

    I've got a very simple script, that loops through all the layers in a mxd and loops through the fields, and prints out the Alias Name for the field, but I am having some problems, it seems to be printing the field alias of the feature class (in SDE)

  • Reference to a cell in an other table in a Word document from a fieldMarch 25

    How to reference to a cell in an other table from a field? I.e. I mean the following: I have 2 tables in a Word document and I have to make a reference to any cell (e.g. R1C1) of the first from the any cell (e.g. R1C1) of the second. I have to do thi

  • Generating tables in a PDF documentMay 6

    I have this code to generate some tables in my PDF document for my Android app. It works fine, but I just think I need to refactor it as the same structure is repeated 3 times. //tables! public static PdfPTable createTableA() { //empty space Paragrap

  • Add Layer into existing GroupLayer in map c#October 4

    I can't add Layer into existing GroupLayer in map. I'm trying this code below, but it does not work! I need code looks like this: public void AddLayer(AxMapControl mapControl, ILayer pLayer) { if(mapcontrol!=null) { for(int i=0; i<map.LayerCount; i++

  • Create a Dynamic Table in your Map Layout - how to use Graphic table element?December 22

    Is this Solution (Create a Dynamic Table in your Map Layout using graphic table element) is part of this Extension ESRi production-mapping extension ? how can i use graphic table element ? --------------Solutions------------- Yes - that solution is p

  • Add an individual layer from ArcGISDynamicMapServiceLayer to the mapMay 16

    I have a ArcGISDynamicMapServiceLayer containing many layers. I'd need to add only individual layers to the map, like layers 2,5 and 10. The following code would add all the layers to the map: url = "http://...MapServer"; mapServiceLayer = new A

  • Remove table from a pages documentMarch 24

    I have added accidentally a table to my pages document on iCloud web interface. Any idea how can I remove. I tried several different shortcuts, remove columns, rows etc. --------------Solutions------------- Select a cell within the table so that the

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 3.531 s.