<?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: create annotations in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1495746#M11717</link>
    <description>&lt;P&gt;Okay, I tried it. The problem still persists. I will try other methods. Thank you for your reply many times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 02:44:45 GMT</pubDate>
    <dc:creator>rs_gs</dc:creator>
    <dc:date>2024-06-21T02:44:45Z</dc:date>
    <item>
      <title>create annotations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494141#M11691</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi All&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hi All&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am working to implement an annotation tool，Click the button to display all annotations.Why do I use this code to create annotations, but when the program runs it shows blank space?Am i missing something？&lt;/P&gt;&lt;P&gt;（c sharp code）&lt;/P&gt;&lt;P&gt;CIMLabelClass labelClass = new CIMLabelClass&lt;BR /&gt;{Visibility = true };&lt;BR /&gt;&amp;nbsp;labelClasses.Add(labelClass);&lt;BR /&gt;layerDef.LabelClasses = labelClasses.ToArray();&lt;BR /&gt;layerDef.LabelVisibility = true;&lt;BR /&gt;layer.SetDefinition(layerDef);&lt;BR /&gt;mapView.Redraw(true);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;rs&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 02:13:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494141#M11691</guid>
      <dc:creator>rs_gs</dc:creator>
      <dc:date>2024-06-18T02:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: create annotations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494202#M11693</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Annotation layers haven't labels. Showing of annotations is organized with sublayers.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GKmieliauskas_0-1718692339159.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107278i3A2834BAE650E103/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GKmieliauskas_0-1718692339159.png" alt="GKmieliauskas_0-1718692339159.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic384.html" target="_self"&gt;CIMAnnotationLayer&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;Sublayers property&amp;nbsp;is array of&amp;nbsp; &lt;SPAN&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic405.html" target="_self"&gt;CIMAnnotationSubLayer&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 06:39:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494202#M11693</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-06-18T06:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: create annotations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494407#M11695</link>
      <description>&lt;P&gt;I'm sorry I made a mistake.I want to display multiple groups of labels that I have set.Thank you.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rs_gs_0-1718721731422.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107306i89E0AB82D12DD8F5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rs_gs_0-1718721731422.png" alt="rs_gs_0-1718721731422.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rs_gs_1-1718721811769.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107307iCFF38A936F8FFE01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rs_gs_1-1718721811769.png" alt="rs_gs_1-1718721811769.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2024 14:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494407#M11695</guid>
      <dc:creator>rs_gs</dc:creator>
      <dc:date>2024-06-18T14:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: create annotations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494560#M11697</link>
      <description>&lt;P&gt;I think that you need to set&amp;nbsp; &lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic2390.html" target="_self"&gt;TextSymbol&lt;/A&gt;&amp;nbsp;property for your created&amp;nbsp;&lt;SPAN&gt;labelClass.&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;  // Blue label
  CIMLabelClass blueLabelClass = new CIMLabelClass
  {
    Name = "Blue",
    ExpressionTitle = "Expression-Blue",
    ExpressionEngine = LabelExpressionEngine.Arcade,
    Expression = "$feature.OBJECTID",
    ID = 2,
    Priority = 0,
    Visibility = true,
    TextSymbol = new CIMSymbolReference
    {
      Symbol = new CIMTextSymbol()
      {
        Angle = 45,
        FontType = FontType.Type1,
        FontFamilyName = "Consolas",
        FontEffects = FontEffects.Normal,
        HaloSize = 2.0,

        Symbol = new CIMPolygonSymbol
        {
          SymbolLayers = new CIMSymbolLayer[]
          {
            new CIMSolidFill
            {
              Color = CIMColor.CreateRGBColor(0, 0, 255)
            }
          },
          UseRealWorldSymbolSizes = true
        }
      },
      MaxScale = 0,
      MinScale = 0,
      SymbolName = "TextSymbol-Blue"
    },
    StandardLabelPlacementProperties = new CIMStandardLabelPlacementProperties
    {
      AllowOverlappingLabels = true,
      LineOffset = 1.0
    },
    MaplexLabelPlacementProperties = new CIMMaplexLabelPlacementProperties
    {
      AlignLabelToLineDirection = true,
      AvoidPolygonHoles = true
    }
  };
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 18 Jun 2024 18:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494560#M11697</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-06-18T18:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: create annotations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494743#M11701</link>
      <description>&lt;P&gt;I've created several tag classes.After the code is run,&amp;nbsp; tag classes are generated，but it doesn't show.However, without changing any parameters, manually operate ArcGIS pro, click the Apply button, the label will be displayed.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rs_gs_0-1718764536354.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107397i369945D6CB1BF780/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rs_gs_0-1718764536354.png" alt="rs_gs_0-1718764536354.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CIMLabelClass labelClass = new &lt;SPAN&gt;CIMLabelClass&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;Name = $"LabelClass_{value}",&lt;BR /&gt;Expression = "$feature.Label",&amp;nbsp;&lt;BR /&gt;ExpressionEngine = LabelExpressionEngine.Arcade,&amp;nbsp;&lt;BR /&gt;Priority = 0,&lt;BR /&gt;Visibility = true,&lt;BR /&gt;WhereClause = $"Label = '{river}'",&amp;nbsp;&lt;BR /&gt;TextSymbol = SymbolFactory.Instance.ConstructTextSymbol(color, 15, "Arial").MakeSymbolReference(),&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;labelClasses.Add(labelClass);&lt;/P&gt;&lt;P&gt;var layerDef = featureLayer.GetDefinition() as CIMFeatureLayer;&lt;BR /&gt;layerDef.LabelClasses = labelClasses.ToArray();&lt;BR /&gt;featureLayer.SetDefinition(layerDef);&lt;BR /&gt;featureLayer.SetLabelVisibility(true);&lt;/P&gt;&lt;P&gt;mapView.Redraw(true);&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 02:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494743#M11701</guid>
      <dc:creator>rs_gs</dc:creator>
      <dc:date>2024-06-19T02:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: create annotations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494804#M11703</link>
      <description>&lt;P&gt;Try to put&amp;nbsp;mapView.Redraw(true); in another&amp;nbsp;QueuedTask.Run. Sometimes separating MCT threads helps.&lt;/P&gt;&lt;P&gt;Or use RedrawAsync method outside&amp;nbsp;QueuedTask.Run &amp;nbsp;which doesn't need MCT thread.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 08:17:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1494804#M11703</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-06-19T08:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: create annotations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1495746#M11717</link>
      <description>&lt;P&gt;Okay, I tried it. The problem still persists. I will try other methods. Thank you for your reply many times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 02:44:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-annotations/m-p/1495746#M11717</guid>
      <dc:creator>rs_gs</dc:creator>
      <dc:date>2024-06-21T02:44:45Z</dc:date>
    </item>
  </channel>
</rss>

