<?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: Mass annotation update in ArcGIS Mapping and Charting Questions</title>
    <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670513#M2356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked well in a test run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cartotalk.com/index.php?showtopic=5401"&gt;http://www.cartotalk.com/index.php?showtopic=5401&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 22:07:07 GMT</pubDate>
    <dc:creator>forestknutsen1</dc:creator>
    <dc:date>2017-09-22T22:07:07Z</dc:date>
    <item>
      <title>Mass annotation update</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670508#M2351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with a "map book" that has a large number of call outs (~3000). We have a request to change the line color and weight for the leaders. The annotation is in&amp;nbsp;a SDE feature class. Is it possible to do this change&amp;nbsp;in bulk?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ArcGIS 10.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 23:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670508#M2351</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2017-09-21T23:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Mass annotation update</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670509#M2352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to check... &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/creating-new-features/setting-annotation-leader-line-symbol-properties.htm"&gt;this doesn't do it in bulk &lt;/A&gt;I suppose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 23:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670509#M2352</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-09-21T23:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mass annotation update</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670510#M2353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You certainly should be able to do this with ArcObjects. I did something kinda similar about 10 years ago using ArcObjects and VBA. I developed some internal tools to help automate and speed up mapping emergency road closures &amp;amp; one map product used balloon callouts that were symbolized either green (re-opened) or red (closed). Rather than drill down 12 levels in the symbol properties, I used VBA ArcObjects to quickly "flip" the color for the selected callout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/372382_calloutColorToggle.jpg" style="width: 620px; height: 394px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here's the VBA code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Private Sub ToggleLabelColor_Click()&lt;BR /&gt; '==========================================================================&lt;BR /&gt; 'This subroutine adds a one point white halo to the currently selected label&lt;BR /&gt; '==========================================================================&lt;BR /&gt; Dim pIMxDoc As IMxDocument&lt;BR /&gt; Dim pMap As IMap&lt;BR /&gt; Dim pActiveView As IActiveView&lt;BR /&gt; Dim pGraphSel As IGraphicsContainerSelect&lt;BR /&gt; Dim numSel As Integer&lt;BR /&gt; Dim pEnv As IEnvelope&lt;BR /&gt; Dim pDisplay As IDisplay&lt;BR /&gt; Dim pContainer As IGraphicsContainer&lt;BR /&gt; Dim pSymbol As ITextSymbol&lt;BR /&gt; Dim myColor As IRgbColor&lt;BR /&gt; Dim whiteFill As IRgbColor&lt;BR /&gt; Dim pTextElement As ITextElement&lt;BR /&gt;&lt;BR /&gt; Dim pCallout As IBalloonCallout&lt;BR /&gt; Dim pFillSymbol As IFillSymbol&lt;BR /&gt; Dim pLineSymbol As ILineSymbol&lt;BR /&gt; Dim pTextBackground As ITextBackground&lt;BR /&gt; Dim pTextSymbol As IFormattedTextSymbol&lt;/P&gt;&lt;P&gt;Set pIMxDoc = ThisDocument&lt;BR /&gt; Set pActiveView = pIMxDoc.FocusMap&lt;BR /&gt; Set pDisplay = pActiveView.ScreenDisplay&lt;BR /&gt; Set pMap = pIMxDoc.FocusMap&lt;BR /&gt; &lt;BR /&gt; Set pContainer = pIMxDoc.FocusMap&lt;BR /&gt; Set pGraphSel = pContainer&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; '--------------------------------------------------------------------------&lt;BR /&gt; 'Make sure only one label is selected. Adjust as desired..&lt;BR /&gt; '--------------------------------------------------------------------------&lt;BR /&gt; numSel = pGraphSel.ElementSelectionCount&lt;BR /&gt; &lt;BR /&gt; Dim index As Integer&lt;BR /&gt; Dim pElement As IElement&lt;BR /&gt; Dim haloSize As Double&lt;BR /&gt; &lt;BR /&gt; For index = 0 To numSel - 1&lt;BR /&gt; Set pElement = pGraphSel.SelectedElement(index)&lt;BR /&gt; If TypeOf pElement Is ITextElement Then&lt;BR /&gt; Set pTextElement = pGraphSel.SelectedElement(index)&lt;BR /&gt; Set pSymbol = pTextElement.Symbol&lt;BR /&gt; &lt;BR /&gt; Set myColor = pSymbol.Color&lt;BR /&gt; &lt;BR /&gt; If myColor.Red = 255 Then&lt;BR /&gt; 'Road is changing from closed to OPEN&lt;BR /&gt; myColor.Red = 38&lt;BR /&gt; myColor.Green = 115&lt;BR /&gt; myColor.Blue = 0&lt;BR /&gt; &lt;BR /&gt; 'MsgBox "This road is closed!", vbInformation, "Results"&lt;BR /&gt; Else&lt;BR /&gt; 'Road is changing from open to CLOSED&lt;BR /&gt; myColor.Red = 255&lt;BR /&gt; myColor.Green = 0&lt;BR /&gt; myColor.Blue = 0&lt;BR /&gt; &lt;BR /&gt; 'MsgBox "This road is open!", vbInformation, "Results"&lt;BR /&gt; End If&lt;BR /&gt; &lt;BR /&gt; pSymbol.Color = myColor&lt;BR /&gt; &lt;BR /&gt; Set whiteFill = New RgbColor&lt;BR /&gt; whiteFill.Red = 255&lt;BR /&gt; whiteFill.Green = 255&lt;BR /&gt; whiteFill.Blue = 255&lt;BR /&gt; &lt;BR /&gt; Set pLineSymbol = New SimpleLineSymbol&lt;BR /&gt; Set pFillSymbol = New SimpleFillSymbol&lt;BR /&gt; pLineSymbol.Color = myColor&lt;BR /&gt; pLineSymbol.Width = 1&lt;BR /&gt; &lt;BR /&gt; pFillSymbol.Color = whiteFill&lt;BR /&gt; pFillSymbol.Outline = pLineSymbol&lt;BR /&gt; &lt;BR /&gt; pTextElement.Symbol = pSymbol&lt;BR /&gt; &lt;BR /&gt; Set pElement = pTextElement&lt;BR /&gt; &lt;BR /&gt; Set pTextSymbol = pTextElement.Symbol&lt;BR /&gt; Set pTextBackground = pTextSymbol.Background&lt;BR /&gt; Set pCallout = pTextBackground&lt;BR /&gt; &lt;BR /&gt; Set pCallout.Symbol = pFillSymbol '.Outline.Color = myColor&lt;BR /&gt; &lt;BR /&gt; Set pTextSymbol.Background = pCallout&lt;BR /&gt; pTextElement.Symbol = pTextSymbol&lt;BR /&gt; &lt;BR /&gt; Set pElement = pTextElement&lt;BR /&gt; End If&lt;BR /&gt; Next index&lt;/P&gt;&lt;P&gt;pActiveView.PartialRefresh esriViewGraphics, Nothing, Nothing&lt;BR /&gt; &lt;BR /&gt; '----------------------------------------------------------------------&lt;BR /&gt; 'Release any memory allocated&lt;BR /&gt; '----------------------------------------------------------------------&lt;BR /&gt; Set pElement = Nothing&lt;BR /&gt; Set pTextElement = Nothing&lt;BR /&gt;End Sub&lt;/P&gt;&lt;P&gt;Private Function ToggleLabelColor_Message() As String&lt;BR /&gt; ToggleLabelColor_Message = "Toggles the Road Closure Balloon Callout Color Between Red (Closed) and Green (open)"&lt;BR /&gt;End Function&lt;/P&gt;&lt;P&gt;Private Function ToggleLabelColor_ToolTip() As String&lt;BR /&gt; ToggleLabelColor_ToolTip = "Toggle Closure Callout Color"&lt;BR /&gt;End Function&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example above, I'm working with graphic labels within an MXD but I think the principle is the same in terms of accessing the symbol properties for a callout.&lt;/P&gt;&lt;P&gt;Sorry I don't have a Dot Net version of this code since we moved away from producing the PDF map based updates during events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 16:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670510#M2353</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2017-09-22T16:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mass annotation update</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670511#M2354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya, looks like that has to do with setting up a "default" anno style before you place it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried selecting a bunch of them (30 or so) and updating them with the Attribute panel; however, only one is updated. Furthermore, the far end of the leader is "reset" (i.e. the length of the leader is reduced to zero). So one must drag the leader back to the feature that the anno is referring to. I fear that even if I do find a way to mass update the annotation I would still need to drag all the leaders back by hand....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 16:52:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670511#M2354</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2017-09-22T16:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mass annotation update</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670512#M2355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hah. Spoke too soon. Looks like I kind of have a Dot Net version of the VBA code. I frankly don't know if this works. I think it does but it's been years since I used it. Looks like this updated code only changes the color TO green in this example but you get the idea:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Imports ESRI.ArcGIS.ArcMapUI&lt;BR /&gt;Imports ESRI.ArcGIS.Carto&lt;BR /&gt;Imports ESRI.ArcGIS.Display&lt;/P&gt;&lt;P&gt;Public Class cmdMakeLabelGreen&lt;BR /&gt; Inherits ESRI.ArcGIS.Desktop.AddIns.Button&lt;/P&gt;&lt;P&gt;Public Sub New()&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;Protected Overrides Sub OnClick()&lt;BR /&gt; Dim application As ESRI.ArcGIS.Framework.IApplication = Nothing&lt;BR /&gt; Dim pIMxDoc As IMxDocument&lt;BR /&gt; Dim pMap As IMap&lt;BR /&gt; Dim pActiveView As IActiveView&lt;BR /&gt; Dim pGraphSel As IGraphicsContainerSelect&lt;BR /&gt; Dim numSel As Integer&lt;BR /&gt; Dim pDisplay As IDisplay&lt;BR /&gt; Dim pContainer As IGraphicsContainer&lt;BR /&gt; Dim pSymbol As ITextSymbol&lt;BR /&gt; Dim myColor As IRgbColor&lt;BR /&gt; Dim whiteFill As IRgbColor&lt;BR /&gt; Dim pTextElement As ITextElement&lt;/P&gt;&lt;P&gt;Dim pCallout As IBalloonCallout&lt;BR /&gt; Dim pFillSymbol As IFillSymbol&lt;BR /&gt; Dim pLineSymbol As ILineSymbol&lt;BR /&gt; Dim pTextBackground As ITextBackground&lt;BR /&gt; Dim pTextSymbol As IFormattedTextSymbol&lt;/P&gt;&lt;P&gt;Try&lt;BR /&gt; application = My.ArcMap.Application&lt;BR /&gt; Dim document As ESRI.ArcGIS.Framework.IDocument = application.Document&lt;BR /&gt; 'pMxDoc = application.Document&lt;BR /&gt; pIMxDoc = CType(document, ESRI.ArcGIS.ArcMapUI.IMxDocument)&lt;BR /&gt; pActiveView = pIMxDoc.FocusMap&lt;BR /&gt; pDisplay = pActiveView.ScreenDisplay&lt;BR /&gt; pMap = pIMxDoc.FocusMap&lt;/P&gt;&lt;P&gt;pContainer = pIMxDoc.FocusMap&lt;BR /&gt; pGraphSel = pContainer&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; '--------------------------------------------------------------------------&lt;BR /&gt; 'Make sure only one label is selected. Adjust as desired..&lt;BR /&gt; '--------------------------------------------------------------------------&lt;BR /&gt; numSel = pGraphSel.ElementSelectionCount&lt;/P&gt;&lt;P&gt;Select Case numSel&lt;BR /&gt; Case 0&lt;BR /&gt; MsgBox("You must select a label!", vbExclamation, "Error Encountered")&lt;BR /&gt; Exit Sub&lt;BR /&gt; Case 1&lt;BR /&gt; 'Do Nothing&lt;BR /&gt; Case Else&lt;BR /&gt; MsgBox("You must have one label selected!", vbExclamation, "Error Encountered")&lt;BR /&gt; Exit Sub&lt;BR /&gt; End Select&lt;/P&gt;&lt;P&gt;Dim index As Integer&lt;BR /&gt; Dim pElement As IElement&lt;/P&gt;&lt;P&gt;For index = 0 To numSel - 1&lt;BR /&gt; pElement = pGraphSel.SelectedElement(index)&lt;BR /&gt; If TypeOf pElement Is ITextElement Then&lt;BR /&gt; pTextElement = pGraphSel.SelectedElement(index)&lt;BR /&gt; pSymbol = pTextElement.Symbol&lt;/P&gt;&lt;P&gt;myColor = pSymbol.Color&lt;/P&gt;&lt;P&gt;'Road is changing from closed to OPEN&lt;BR /&gt; myColor.Red = 38&lt;BR /&gt; myColor.Green = 115&lt;BR /&gt; myColor.Blue = 0&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; pSymbol.Color = myColor&lt;/P&gt;&lt;P&gt;whiteFill = New RgbColor&lt;BR /&gt; whiteFill.Red = 255&lt;BR /&gt; whiteFill.Green = 255&lt;BR /&gt; whiteFill.Blue = 255&lt;/P&gt;&lt;P&gt;pLineSymbol = New SimpleLineSymbol&lt;BR /&gt; pFillSymbol = New SimpleFillSymbol&lt;BR /&gt; pLineSymbol.Color = myColor&lt;BR /&gt; pLineSymbol.Width = 1&lt;/P&gt;&lt;P&gt;pFillSymbol.Color = whiteFill&lt;BR /&gt; pFillSymbol.Outline = pLineSymbol&lt;/P&gt;&lt;P&gt;pTextElement.Symbol = pSymbol&lt;/P&gt;&lt;P&gt;pElement = pTextElement&lt;/P&gt;&lt;P&gt;pTextSymbol = pTextElement.Symbol&lt;BR /&gt; pTextBackground = pTextSymbol.Background&lt;BR /&gt; pCallout = pTextBackground&lt;/P&gt;&lt;P&gt;pCallout.Symbol = pFillSymbol '.Outline.Color = myColor&lt;/P&gt;&lt;P&gt;pTextSymbol.Background = pCallout&lt;BR /&gt; pTextElement.Symbol = pTextSymbol&lt;/P&gt;&lt;P&gt;pElement = pTextElement&lt;BR /&gt; pContainer.UpdateElement(pElement)&lt;BR /&gt; End If&lt;BR /&gt; Next index&lt;/P&gt;&lt;P&gt;pActiveView.PartialRefresh(ESRI.ArcGIS.Carto.esriViewDrawPhase.esriViewGeography, Nothing, Nothing)&lt;/P&gt;&lt;P&gt;'----------------------------------------------------------------------&lt;BR /&gt; 'Release any memory allocated&lt;BR /&gt; '----------------------------------------------------------------------&lt;BR /&gt; pElement = Nothing&lt;BR /&gt; pTextElement = Nothing&lt;BR /&gt; pLineSymbol = Nothing&lt;BR /&gt; pFillSymbol = Nothing&lt;BR /&gt; pTextSymbol = Nothing&lt;BR /&gt; pActiveView = Nothing&lt;BR /&gt; whiteFill = Nothing&lt;BR /&gt; pSymbol = Nothing&lt;BR /&gt; myColor = Nothing&lt;BR /&gt; pGraphSel = Nothing&lt;BR /&gt; pContainer = Nothing&lt;BR /&gt; pMap = Nothing&lt;BR /&gt; pDisplay = Nothing&lt;BR /&gt; pIMxDoc = Nothing&lt;BR /&gt; pTextBackground = Nothing&lt;BR /&gt; Catch ex As Exception&lt;BR /&gt; globalErrorHandler(ex)&lt;BR /&gt; End Try&lt;BR /&gt; End Sub&lt;/P&gt;&lt;P&gt;Protected Overrides Sub OnUpdate()&lt;/P&gt;&lt;P&gt;End Sub&lt;BR /&gt;End Class&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 16:54:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670512#M2355</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2017-09-22T16:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mass annotation update</title>
      <link>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670513#M2356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked well in a test run:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.cartotalk.com/index.php?showtopic=5401"&gt;http://www.cartotalk.com/index.php?showtopic=5401&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 22:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-mapping-and-charting-questions/mass-annotation-update/m-p/670513#M2356</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2017-09-22T22:07:07Z</dc:date>
    </item>
  </channel>
</rss>

