<?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 Annotate Selected Features (ArcMap 10.2.1) in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/annotate-selected-features-arcmap-10-2-1/m-p/568353#M15311</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’ve got a file geodatabase with lines, points and feature-linked annotation.&amp;nbsp; For creating new annotation features I’m using the “Selection | Annotate Selected Features” tool from the ArcMap table of contents.&amp;nbsp; Always for a single selected feature at a time.&amp;nbsp; Sometimes this can be quick, like a second or two, but often it’s slow, taking 30 to 45 seconds to annotate a single feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process brings up a dialog that describes steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;- Setting up annotation&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp; Giving features to the label engine&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp; Labeling features&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp; Creating the annotation elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When it’s slow it seems to pause at the step “Giving features to the label engine”.&amp;nbsp; &amp;nbsp;The target annotation class doesn’t really have a complex expression.&amp;nbsp; It is usually getting a value from a single field.&amp;nbsp; I’ve tried with and without a feature cache built – no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also found a reference in Geo.Net back in 2014 that reported an issue with a corrupted group layer. (&lt;A _jive_internal="true" href="https://community.esri.com/message/95014"&gt;https://community.esri.com/message/95014&lt;/A&gt;). &amp;nbsp;&amp;nbsp;So I tried creating a new map with only the source feature layer and related anno layer.&amp;nbsp; Still slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A thing I *did* do that make be a clue is change the annotation expression from one that used JavaScript to one that uses VBScript.&amp;nbsp; The two expressions produced the same text string.&amp;nbsp; Not sure if this would make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers on why this step would take so long and what I can do to improve it would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jan 2019 14:10:25 GMT</pubDate>
    <dc:creator>EdwardBlair</dc:creator>
    <dc:date>2019-01-28T14:10:25Z</dc:date>
    <item>
      <title>Annotate Selected Features (ArcMap 10.2.1)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/annotate-selected-features-arcmap-10-2-1/m-p/568353#M15311</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’ve got a file geodatabase with lines, points and feature-linked annotation.&amp;nbsp; For creating new annotation features I’m using the “Selection | Annotate Selected Features” tool from the ArcMap table of contents.&amp;nbsp; Always for a single selected feature at a time.&amp;nbsp; Sometimes this can be quick, like a second or two, but often it’s slow, taking 30 to 45 seconds to annotate a single feature.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process brings up a dialog that describes steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;- Setting up annotation&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp; Giving features to the label engine&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp; Labeling features&lt;/P&gt;&lt;P&gt;&amp;nbsp; -&amp;nbsp; Creating the annotation elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When it’s slow it seems to pause at the step “Giving features to the label engine”.&amp;nbsp; &amp;nbsp;The target annotation class doesn’t really have a complex expression.&amp;nbsp; It is usually getting a value from a single field.&amp;nbsp; I’ve tried with and without a feature cache built – no difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also found a reference in Geo.Net back in 2014 that reported an issue with a corrupted group layer. (&lt;A _jive_internal="true" href="https://community.esri.com/message/95014"&gt;https://community.esri.com/message/95014&lt;/A&gt;). &amp;nbsp;&amp;nbsp;So I tried creating a new map with only the source feature layer and related anno layer.&amp;nbsp; Still slow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A thing I *did* do that make be a clue is change the annotation expression from one that used JavaScript to one that uses VBScript.&amp;nbsp; The two expressions produced the same text string.&amp;nbsp; Not sure if this would make a difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers on why this step would take so long and what I can do to improve it would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2019 14:10:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/annotate-selected-features-arcmap-10-2-1/m-p/568353#M15311</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2019-01-28T14:10:25Z</dc:date>
    </item>
  </channel>
</rss>

