<?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: Managing Symbology using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600994#M46974</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Jeff - I stumbled across this forum post while researching a workaround to your 'line in the sand'. I need to generate approx 30,000 point feature classes and then render each one with a unique combination of CMYK values. Due to the size of this project, automation is the only solution however, the symbology properties exposed through the arcpy.mapping module are SO limited...the solution offered is to hit against a .lyr file that has been pre-generate with the exact CMYK combo I need. If I have to go through the trouble of generating all the .lyr files, i might as well just symbolize each point layer by hand. Ideally, exposing the RGB, HSV, or CMYK values would be EXTREMELY valuable in this instance as I'm sure in so many others. I don' have time to go the ArcObjects route...what do you suggest?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;30,000 symbols distinguished only by color is a questionable cartographic design in my opinion.&amp;nbsp; What could a viewer possibly gain from the resulting set of thousands of indistinguishable symbols generated on that order?&amp;nbsp; I could see the point if these were sign faces or more complex than mere color gradations, but if does not sound like that is what you are aiming for.&amp;nbsp; I do not see the value in a symbol set like that unless you have some justification for this design that escapes me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any case, I would argue that you do have the time to do the ArcObject route if you are determined to do this, given the amount of time you would save by avoiding a manual solution.&amp;nbsp; Waiting for arcpy.mapping to support this option would require you to wait much longer for this solution and involve a much greater effort on ESRI's part than your writing the code in ArcObjects using the forum help already available on this subject.&amp;nbsp; It is not like ESRI has given you no alternative to a manual approach and from a cost benefit perspective, I would say you have clearly reached the point where .Net/ArcObjects is your best route.&amp;nbsp; ArcObjects is EXTREMELY valuable in this instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Arcpy suffers far more limitations than users who only attempt to learn that will ever know.&amp;nbsp; I have had to abandon supported arcpy functionality in favor of ArcObjects on several projects due to performance requirements that I could not overcome with arcpy.&amp;nbsp; Arcpy has its place, but ArcObjects will always be superior to arcpy on several fundamental levels from my perspective and encouraging people who want to push those limits to stay with arcpy is ultimately a disservice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Mar 2014 17:23:29 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2014-03-30T17:23:29Z</dc:date>
    <item>
      <title>Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600977#M46957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can someone point me to the correct help source for managing symbology using python?&amp;nbsp; I want to change symbol colors, line widths... for feature classes as well as graphics&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 13:15:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600977#M46957</guid>
      <dc:creator>DaveJordan1</dc:creator>
      <dc:date>2011-11-23T13:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600978#M46958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found this sample code for UdateLayer (using a .lyr file).&amp;nbsp; However, I used a &lt;/SPAN&gt;&lt;STRONG style="font-style: italic;"&gt;No Color &lt;/STRONG&gt;&lt;SPAN&gt;option in the .lyr file&amp;nbsp; but it comes in solid Black!!!:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Reference layer in secondary map document&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd2 = arcpy.mapping.MapDocument(r"C:\Project\ProjectTemplate.mxd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df2 = arcpy.mapping.ListDataFrames(mxd2, "Layers")[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sourceLayer = arcpy.mapping.ListLayers(mxd2, "Rivers Group Layer", df2)[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Update layer in primary map document&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;df = arcpy.mapping.ListDataFrames(mxd, "County Maps")[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;updateLayer = arcpy.mapping.ListLayers(mxd, "Rivers", df)[0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.UpdateLayer(df, updateLayer, sourceLayer, False)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#Save to a new map document and clear variable references&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd.saveACopy(r"C:\Project\Project2.mxd")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;del mxd, mxd2&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 14:30:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600978#M46958</guid>
      <dc:creator>DaveJordan1</dc:creator>
      <dc:date>2011-11-23T14:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600979#M46959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm having the exact same problem. If the original polygon symbology is hallowed or outlined, then the script will fill the polygon with black. However, if I open or import the layer file within ArcMap the proper symbology is displayed. I haven't tried it with points or polyline features yet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 17:59:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600979#M46959</guid>
      <dc:creator>JasonHarshman</dc:creator>
      <dc:date>2012-06-14T17:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600980#M46960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;jaybo684 - I still don't have a solution for this issue.&amp;nbsp; In fact, when I received notification that you had commented on this post, I was looking at&amp;nbsp; the same issue generated from a Flex widget...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 18:24:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600980#M46960</guid>
      <dc:creator>DaveJordan1</dc:creator>
      <dc:date>2012-06-14T18:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600981#M46961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just skim through the functions and classes under arcpy site package from the help file, yet could not find any methods to manipulate the symbology either.&amp;nbsp; The only way I can do this is to apply the symbology to my new feature class from another existing layer using "gp.applysymbologyfromlayer".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006n000000"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006n000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2012 19:14:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600981#M46961</guid>
      <dc:creator>ThaiTruong</dc:creator>
      <dc:date>2012-06-14T19:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600982#M46962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can not reproduce this.&amp;nbsp; I've tried updating with layers from layer files, other MXDs (as in your example), I've done with with stand alone scripts, using CURRENT, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please provide more detailed steps so I can evaluate this further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 15:48:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600982#M46962</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-06-18T15:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600983#M46963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All I want to do is to change the size and color of the points in a layer file.&amp;nbsp; Easy to do in Arcmap.&amp;nbsp; Impossible in arcpy?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shouldn't be.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2012 17:14:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600983#M46963</guid>
      <dc:creator>WilliamIde</dc:creator>
      <dc:date>2012-07-17T17:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600984#M46964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ubanide,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know what you mean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Though I do not have a solution and haven't figured out how to do what you want (I wouldn't mind knowing), I can tell you how we do it. We simply make layer .lyr files with the symbology we want already customized and save them to our network drive. Then we just use those in our scripts to apply symbology from them. Might be a workaround for you if you can't figure out how to do it your way.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best of luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 02:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600984#M46964</guid>
      <dc:creator>GIS1</dc:creator>
      <dc:date>2012-07-18T02:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600985#M46965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is a quote from a presentation from ESRI about map automation using python:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;STRONG&gt;This is not a replacement for ArcObjects â?? we are trying to draw a line in the sand&lt;/STRONG&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Clearly, the powers that be at ESRI want you to do something as 'advanced' as changing basic symbology (like point sizes and lineweights, colors, etc.) by using ArcObjects. The updateLayer method referencing an existing .lyr maybe your best bet. Just another somewhat annoying thing, like having to create a .lyr file before you can add a layer to a map document.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 11:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600985#M46965</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-07-19T11:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600986#M46966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm the guilty one, that was my presentation and my quote.&amp;nbsp; Now I want to give it some context and ask a couple of questions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Authoring symbology in ArcMap is a simple process but think of all the possibilities and all the options available via the symbology properties dialog.&amp;nbsp; We could easily triple the arcpy.mapping API but just attempting to provide all that capability.&amp;nbsp; We don't want to do that.&amp;nbsp; We are trying to keep arcpy.mapping as simple as possible without making it as complex as ArcObjects.&amp;nbsp; Do you just want to change the color ( should we include RGB, CMYK options), or will you also want to change the symbol size, outline width, pattern, etc, etc?&amp;nbsp; That was the point of attempting to draw the line in the sand between what is pure map automation and what can be done with ArcObjects.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help me understand, in a real mapping scenario, why do you need to dynamically change these symbol properties?&amp;nbsp; Why does the color/size of a layer need to change going from map sheet to map sheet?&amp;nbsp; If the point is to update the color for a layer in many map documents across a system, then UpdateLayer along with a layer file works really well (without having to recreate ArcObjects capabilities at the arcpy.mapping level). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not trying to argue here, I'm looking for well documented scenarios to help us continue expanding the capabilities of arcpy.mapping where absolutely needed for map automation tasks.&amp;nbsp; At 10.1, we added quite a few new capabilities including some symbology classes that are needed to support map automation: GraduatedColorSymbology, GraduatedSymbolsSymbology, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 18:24:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600986#M46966</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2012-07-19T18:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600987#M46967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm the guilty one, that was my presentation and my quote.&amp;nbsp; Now I want to give it some context and ask a couple of questions....We could easily triple the arcpy.mapping API but just attempting to provide all that capability.&amp;nbsp; We don't want to do that.&amp;nbsp; We are trying to keep arcpy.mapping as simple as possible without making it as complex as ArcObjects....Help me understand, in a real mapping scenario, why do you need to dynamically change these symbol properties?&amp;nbsp; ...without having to recreate ArcObjects capabilities at the arcpy.mapping level...Thanks for your help,&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jeff, don't misunderstand me, i totally get the message and understand why there are limitations in the arcpy.mapping module. I'm really on the fence with some of these issues.&amp;nbsp; As a user in a real-world GIS context the issues surrounding my desire to have more ability within arcpy.mapping are two-fold.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One is simply about having tools that are easily grasped and are accessible.&amp;nbsp; ArcObjects is great, if you are writing .net code and have access to development tools like VisualStudio - but not all organizations have these or the staff who have the skills to use these.&amp;nbsp; The amount of learning one has to do to master ArcObjects is also somewhat formidable as well, and given the rate at which technology is advancing, the more things one has to learn to simply 'do the job' is a challenge.&amp;nbsp; I love Python because it cheap, fast, easy and lightweight (attributes i tend to appreciate about most things in life) - it costs virtually nothing for my organization to use and the ease of which it can be implemented really helps in the fast-paced world in which we tend to work.&amp;nbsp; Conversely, I also don't want to see arcpy.mapping become so bloated and complex that it defeats the stated purpose.&amp;nbsp; Part of my 'frustration' (if you can call it that) is that VBA is gone- Python scripting I thought was the answer to the deprecation of that capability, but arcpy and arcpy.mapping does that in a hamstrung way.&amp;nbsp; At least with VBA you had access to all of arcObjects, even though you can't really distribute those tools very easily. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other issue simply has to do with real world practicalities of managing things like .lyr files.&amp;nbsp; So much of what we do are short lived products that managing on-disk libraries of things like .lyr files and such just isn't always practical.&amp;nbsp; If i can write code that creates these without having to take the time to create and maintain a file structure and things inside it then thats very helpful. For example, recently i wrote a script that makes a selection in featureclass A, and then selects all features from another featureclass B where those features intersect.&amp;nbsp; The outputs from the script are .lyr files saved to disk with definition queries so these aren't simply 'selection layers'.&amp;nbsp; How nice would it be to simply create those layers on the fly (there are 96 of them in the end) and add those to maps iteratively and apply symbology.&amp;nbsp; To accomplish this in arcypy i have to save these to disk, manually create 'template layers' with the proper symbology (simple stuff like line weights and color), then write the code to access those .lyr files and point at the template layers to get symbology, and then add those to a map. Though its easier than doing this manually, its certainly not as elegant as it could be and having to write data to disk seems unnecessary.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ultimately, things aren't bad, they are in fact really good, its just the more capability I see, the more I want without having to change horses.&amp;nbsp; I want one set of development tools, and not have to spend time moving down one development path only to realize "oh crap, i really need to be writing .net code against arcObjects to do this".&amp;nbsp; Contact me via email if you want to discuss more about some of this - i dont' want to take this thread any further off-topic at this point.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 13:08:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600987#M46967</guid>
      <dc:creator>ChristopherThompson</dc:creator>
      <dc:date>2012-07-20T13:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600988#M46968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to change the symbology of a single layer at a transition from one scale to another.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can found my post here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/72035-How-to-change-the-symbology-of-a-single-layer-at-a-transition-from-one-scale-to-anoth"&gt;http://forums.arcgis.com/threads/72035-How-to-change-the-symbology-of-a-single-layer-at-a-transition-from-one-scale-to-anoth&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please i need a help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 14:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600988#M46968</guid>
      <dc:creator>BarraLoubna</dc:creator>
      <dc:date>2012-11-26T14:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600989#M46969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, everyone. I'm a little late to the discussion but was hoping one of you could point me in the right direction. I've got a script that downloads a large number of shapefiles from an FTP site. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Those shapefiles are then imported into a FileGeodatabase FeatureClass and their datestamp is used for graphically differentiating them. These datestamps change over time, so three days from now, thousands of new datestamps will appear in the database. I want all of these data to be represented by a an arrow whose rotation is defined by a field in the featureclass. I've attached a screenshot, showing the conversion which I need to perform in terms of symbology. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone please tell me if this task is possible through Python and if so, how would I do it? Thanks a million!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm the guilty one, that was my presentation and my quote.&amp;nbsp; Now I want to give it some context and ask a couple of questions...&lt;BR /&gt;&lt;BR /&gt;Help me understand, in a real mapping scenario, why do you need to dynamically change these symbol properties?...&lt;BR /&gt;&lt;BR /&gt;I'm not trying to argue here, I'm looking for well documented scenarios to help us continue expanding the capabilities of arcpy.mapping where absolutely needed for map automation tasks.&amp;nbsp; At 10.1, we added quite a few new capabilities including some symbology classes that are needed to support map automation: GraduatedColorSymbology, GraduatedSymbolsSymbology, etc.&lt;BR /&gt;&lt;BR /&gt;Thanks for your help,&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 15:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600989#M46969</guid>
      <dc:creator>MatthewGerbrandt</dc:creator>
      <dc:date>2012-12-03T15:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600990#M46970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully you still get a notification of this reply to a year-old post.&amp;nbsp; Here's a real-world scenario where sheet-by-sheet programmatic access to detailed symbology properties is needed.&amp;nbsp; Data driven pages support attribute-driven map rotation.&amp;nbsp; But polygon line fill symbols do not support attribute-driven angles.&amp;nbsp; So when the data frame is rotated the 45 degree symbol is not 45 degrees anymore.&amp;nbsp; This is a real problem if you have more than one angled line symbol (forward leaning angle means one thing, backwards leaning angle means something else).&amp;nbsp; If the map is rotated just right the symbols are just cartographically wrong.&amp;nbsp; In a static map you can calculate the fill angle to compensate for the map rotation, but this is not possible in a dynamic data driven page where the rotation is changing.&amp;nbsp; We can do really cool things with Python and data driven pages, but this is not one of them.&amp;nbsp; ArcObjects should not be required to solve this problem, which has existed for years.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ted Chapin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 13:08:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600990#M46970</guid>
      <dc:creator>TedChapin</dc:creator>
      <dc:date>2013-12-12T13:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600991#M46971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I understand your requirement.&amp;nbsp; You want your fill symbol angles to always align with the page, not the data.&amp;nbsp; For example if you have a 45 degree cross-hatch symbol and a rotation = 0.&amp;nbsp; Then then both the legend and the cross-hatch symbols are at 45 degrees.&amp;nbsp; If you rotate your data frame 10 degrees, the cross-hatch symbols also rotate 10 degrees (but the legend does NOT).&amp;nbsp; So you have to go into your layer, symbology properties and set the fill angle property to be 35 degrees.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way I can think of doing this with arcpy.mapping is if you have a limited number of rotation angles.&amp;nbsp; I would author a layer file for each possible rotation and modify the fill angle property.&amp;nbsp; As I go from page to page to page, when setting data frame rotation to a non-zero value, I would update all the appropriate layers with symbology from the matching layer files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know its a work around but it can work for now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for defining this requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 14:21:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600991#M46971</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2013-12-13T14:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600992#M46972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a related but even simpler issue with the UpdateLayer process in python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am making ~130 thumbnail map showing New England towns (~2000 town) and I want the polygon outlines to be thin...around 0.10 pts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I make my source_layer have thinner outlines, but whenever arcpy does the UpdateLayer function, they come back with 0.40 widths.&amp;nbsp; This happens even if I sent the outline on my source_layer to no outline/no color.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Brian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Dec 2013 14:26:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600992#M46972</guid>
      <dc:creator>BrianHall1</dc:creator>
      <dc:date>2013-12-24T14:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600993#M46973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jeff - I stumbled across this forum post while researching a workaround to your 'line in the sand'. I need to generate approx 30,000 point feature classes and then render each one with a unique combination of CMYK values. Due to the size of this project, automation is the only solution however, the symbology properties exposed through the arcpy.mapping module are SO limited...the solution offered is to hit against a .lyr file that has been pre-generate with the exact CMYK combo I need. If I have to go through the trouble of generating all the .lyr files, i might as well just symbolize each point layer by hand. Ideally, exposing the RGB, HSV, or CMYK values would be EXTREMELY valuable in this instance as I'm sure in so many others. I don' have time to go the ArcObjects route...what do you suggest?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 15:55:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600993#M46973</guid>
      <dc:creator>RebeccaRothbard</dc:creator>
      <dc:date>2014-03-30T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600994#M46974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Jeff - I stumbled across this forum post while researching a workaround to your 'line in the sand'. I need to generate approx 30,000 point feature classes and then render each one with a unique combination of CMYK values. Due to the size of this project, automation is the only solution however, the symbology properties exposed through the arcpy.mapping module are SO limited...the solution offered is to hit against a .lyr file that has been pre-generate with the exact CMYK combo I need. If I have to go through the trouble of generating all the .lyr files, i might as well just symbolize each point layer by hand. Ideally, exposing the RGB, HSV, or CMYK values would be EXTREMELY valuable in this instance as I'm sure in so many others. I don' have time to go the ArcObjects route...what do you suggest?&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;30,000 symbols distinguished only by color is a questionable cartographic design in my opinion.&amp;nbsp; What could a viewer possibly gain from the resulting set of thousands of indistinguishable symbols generated on that order?&amp;nbsp; I could see the point if these were sign faces or more complex than mere color gradations, but if does not sound like that is what you are aiming for.&amp;nbsp; I do not see the value in a symbol set like that unless you have some justification for this design that escapes me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any case, I would argue that you do have the time to do the ArcObject route if you are determined to do this, given the amount of time you would save by avoiding a manual solution.&amp;nbsp; Waiting for arcpy.mapping to support this option would require you to wait much longer for this solution and involve a much greater effort on ESRI's part than your writing the code in ArcObjects using the forum help already available on this subject.&amp;nbsp; It is not like ESRI has given you no alternative to a manual approach and from a cost benefit perspective, I would say you have clearly reached the point where .Net/ArcObjects is your best route.&amp;nbsp; ArcObjects is EXTREMELY valuable in this instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Arcpy suffers far more limitations than users who only attempt to learn that will ever know.&amp;nbsp; I have had to abandon supported arcpy functionality in favor of ArcObjects on several projects due to performance requirements that I could not overcome with arcpy.&amp;nbsp; Arcpy has its place, but ArcObjects will always be superior to arcpy on several fundamental levels from my perspective and encouraging people who want to push those limits to stay with arcpy is ultimately a disservice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Mar 2014 17:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600994#M46974</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2014-03-30T17:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600995#M46975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's a real world example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; We used to do this process in VBA, but as support for VBA is being dropped from ArcGIS, we were trying to transition to python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; We are creating a series of maps that give instructions to operators flushing out a town's water system.&amp;nbsp; We have 300 fields in the data for pipes, hydrants, valves, etc.&amp;nbsp; Each of those fields can essentially have a value saying whether the item was used in a previous route, is used in the current route or has not yet been used in a route.&amp;nbsp; Linear referencing doesn't work for this, because for most routes, there are branch pipes off the main that get flushed by water going up them and back - ie. follow a branch till the first valve.&amp;nbsp; So as we do the data driven pages or python mapbook, we constantly change which field the symbolization comes from.&amp;nbsp; In ArcMap, when you apply symbolization from another layer you can choose which field to apply that to, but the same command in Arcpy limits you to using the same field name.&amp;nbsp; So we tried to change the field name using lyr.symbology.valueField but that eliminates all the symbols.&amp;nbsp; We can re-add by using the .addAllValues function, but these then show up with default symbolization, with no way to control it.&amp;nbsp; So it looks like all the effort I put into my python scripting is now a waste, because I can't control the symbolization.&amp;nbsp; In the end the script was going to generate both mxd's and pdf's in case there was any required tweaking to the route maps, so Data Driven Pages just doesn't cut it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; To control my symbols with layer files, I need 5 layer files per route - one each for pipes, hydrants, stand pipes, drainage outlets and valves.&amp;nbsp; For 300 routes in a small town that's 1500 layer files.&amp;nbsp; I'd hate to do a city.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I even opened a layer file in a text editor, to see if I could manipulate it on the fly but it's mostly machine code - very little english text.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 13:41:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600995#M46975</guid>
      <dc:creator>ColinLang</dc:creator>
      <dc:date>2014-04-11T13:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Symbology using Python</title>
      <link>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600996#M46976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a situation where I have a unique values source layer file that I use to update polygon&amp;nbsp;feature classes with the appropriate symbology.&lt;/P&gt;&lt;P&gt;arcpy.mapping.UpdateLayer() does a great job, however, it applies all possible values ( 428 possibles ). This makes the legend unusable, and I only need the 10-20 I actually have values for in the feature class. Using the symbology.addAllValues() changes my labels AND reorders the colors assigned to the unique values, frustrating.&lt;/P&gt;&lt;P&gt;arcpy.ApplySymbologyFromLayer_management() only applies the ones I have values for in the feature class, fantastic, except it doesn't respect the headings from the source layer file. What do I do?&lt;/P&gt;&lt;P&gt;Do I edit each layer file I'm creating to add in the headings, etc... that I need? OR&lt;/P&gt;&lt;P&gt;Do I open each layer file and delete all values that have a zero count?&lt;/P&gt;&lt;P&gt;Keeping in mind that there are many of these files generated daily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time and any offer of help,&lt;/P&gt;&lt;P&gt;Brandon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 20:38:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/managing-symbology-using-python/m-p/600996#M46976</guid>
      <dc:creator>BrandonConner</dc:creator>
      <dc:date>2017-01-05T20:38:19Z</dc:date>
    </item>
  </channel>
</rss>

