<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Arcpy: can't access lyr.symbology (but all other attributes fine) in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369555#M29219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can confirm that Arcs Python Script window autocomplete options do include both '&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;symbology' and 'symbologyType'&amp;nbsp;&amp;nbsp; as of version 10.1. (Possibly SP1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Therefore either your doing something wrong to not get these, or you are using an older version of ArcMAP. (10.0 I guess?). These properties are new to the 10.1 line of Arc as far as I can tell.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I dont think it is caused by security, as the autocomplete would still function,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 16:49:22 GMT</pubDate>
    <dc:creator>LukeWebb</dc:creator>
    <dc:date>2015-06-09T16:49:22Z</dc:date>
    <item>
      <title>Arcpy: can't access lyr.symbology (but all other attributes fine)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369550#M29214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've just been attempting my first map automation with arcpy (relatively new to Python but a Java coder). I'm working on an open document that's got a layer with a graduated colour symbology already defined, trying to access it to make a change before outputting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem: in arcpy, I have access to, as far as I can tell, all the Layer object's attributes/methods - apart from symbology and symbologyType. Brightness through to workspacePath are all there, Symbology isn't. It's also not listed in lyr.supports(). I am able to run "lyr.definitionQuery =" fine, but "if lyr.symbologyType == "GRADUATED_COLORS":..." gives me "Layer object has no attribute 'symbologyType'." Same for Symbology.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Arc/Arcpy on a remote server that's hot on security. That's only thing I can think of that might be affecting object access. Or it could be something very obvious I'm missing, given I'm new to it - but shouldn't all Layer objects give me access to testing for SymbologyType, at least? And if it's not working, why are all other atttributes/methods there? Confused!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on anything obvious I'm missing? I'm hoping it's something simple and stupid... Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 13:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369550#M29214</guid>
      <dc:creator>DanOlner</dc:creator>
      <dc:date>2015-06-09T13:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: can't access lyr.symbology (but all other attributes fine)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369551#M29215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you copy the MXD locally, does the script have access to the layer's symbology?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 13:48:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369551#M29215</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-06-09T13:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: can't access lyr.symbology (but all other attributes fine)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369552#M29216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply. I think I am already using a local reference to mxd? Code is just:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/P&gt;&lt;P&gt;lyr = arcpy.mapping.ListLayers(mxd)[0] #(which is my only layer)&lt;/P&gt;&lt;P&gt;lyr.supports("DEFINITIONQUERY")&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;true&lt;/P&gt;&lt;P&gt;lyr.supports("SYMBOLOGY")&lt;/P&gt;&lt;P&gt;lyr.supports("SYMBOLOGYTYPE")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These last two both return an error: "invalid value for layer_property... choices are..."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may have misunderstood your question as I'm new to Python, but if you mean using a local scope variable, I think I'm doing that...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 14:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369552#M29216</guid>
      <dc:creator>DanOlner</dc:creator>
      <dc:date>2015-06-09T14:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: can't access lyr.symbology (but all other attributes fine)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369553#M29217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;He means copy the layer (is it small, if not just grab 1 or 2 features) onto your local machine. (That is not hot on security), also save the mxd file here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the issue still present in this instance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code above looks fine and is referring to a local document as you say, however if security is causing an issue doing this should avoid that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;Python is very Case Sensitive, in the help files these are referred to as shown, have you tried referring to them in this case instead of capital letters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12.1599998474121px;"&gt;definitionQuery&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12.1599998474121px;"&gt;symbologyType&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-size: 12.1599998474121px; font-family: Arial, Helvetica, sans-serif;"&gt;symbology&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 14:59:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369553#M29217</guid>
      <dc:creator>LukeWebb</dc:creator>
      <dc:date>2015-06-09T14:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: can't access lyr.symbology (but all other attributes fine)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369554#M29218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. I can't copy onto a local machine. I have access to secure data and applications to use it on a remote desktop via citrix. We're not allowed to have any data locally, only work on the remote desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers - yes, I've been using the correct case. Arc's python script window has good autocomplete options too (that don't include symbology or symbologyType - which should be between supports and transparency!) so I'm able to see what's available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should check I can get the basic thing working locally for a different layer, though, you're right. I don't have my own local copy of arc, though colleagues do - I'll check on theirs. Though it's sounding like it's just not going to work on the remote server...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 15:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369554#M29218</guid>
      <dc:creator>DanOlner</dc:creator>
      <dc:date>2015-06-09T15:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: can't access lyr.symbology (but all other attributes fine)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369555#M29219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can confirm that Arcs Python Script window autocomplete options do include both '&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;symbology' and 'symbologyType'&amp;nbsp;&amp;nbsp; as of version 10.1. (Possibly SP1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Therefore either your doing something wrong to not get these, or you are using an older version of ArcMAP. (10.0 I guess?). These properties are new to the 10.1 line of Arc as far as I can tell.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I dont think it is caused by security, as the autocomplete would still function,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 16:49:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369555#M29219</guid>
      <dc:creator>LukeWebb</dc:creator>
      <dc:date>2015-06-09T16:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: can't access lyr.symbology (but all other attributes fine)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369556#M29220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, it's 10.0, yes. So - autocomplete does work for me (Brightness through to workspacePath) it's just not providing me with symbology or symbologyType. Is that a version issue, then?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for checking it works on your machine for me, much appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 16:55:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369556#M29220</guid>
      <dc:creator>DanOlner</dc:creator>
      <dc:date>2015-06-09T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: can't access lyr.symbology (but all other attributes fine)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369557#M29221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes these property's are not listed in the 10.0 class documentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Layer/00s300000008000000/" title="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Layer/00s300000008000000/"&gt;ArcGIS Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But are present in the 10.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000008000000" title="http://resources.arcgis.com/en/help/main/10.1/index.html#//00s300000008000000"&gt;ArcGIS Help 10.1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So its a version issue. I feel your pain on a remote secure system and Imageine upgrading will not be easy, so best of luck &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you will have to use ArcObjects or VBA to get access to these in this version which is a lot more complex!&amp;nbsp; Hopefully someone can correct me here, but I dont think so...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 16:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369557#M29221</guid>
      <dc:creator>LukeWebb</dc:creator>
      <dc:date>2015-06-09T16:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy: can't access lyr.symbology (but all other attributes fine)</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369558#M29222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh well - thank you for solving the problem for me, though. At least I know what's wrong now... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 17:44:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-can-t-access-lyr-symbology-but-all-other/m-p/369558#M29222</guid>
      <dc:creator>DanOlner</dc:creator>
      <dc:date>2015-06-09T17:44:41Z</dc:date>
    </item>
  </channel>
</rss>

