<?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: how to get the connected attribute rotation field of a layer in pro SDK in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-connected-attribute-rotation-field/m-p/826366#M3049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas that is great.&amp;nbsp; I am new to ArcGIS Pro so I am still getting my feet wet.&lt;/P&gt;&lt;P&gt;I am surprise it is the VisualVariableInfoZ since I am dealing with a 2D map...&amp;nbsp; I guess it is around the Z axis which protrudes from the map...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Mar 2016 15:15:42 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2016-03-21T15:15:42Z</dc:date>
    <item>
      <title>how to get the connected attribute rotation field of a layer in pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-connected-attribute-rotation-field/m-p/826364#M3047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to make a custom point construction tool with a line geometry.&amp;nbsp; I want to take the angle of the line and pass it to the field for which the rotation is set, if rotation is set.&lt;/P&gt;&lt;P&gt;In pro interface,&lt;/P&gt;&lt;P&gt;I go to my point layer&lt;/P&gt;&lt;P&gt;I open the symbology tab (unique value renderer)&lt;/P&gt;&lt;P&gt;I go to review connected attributes&lt;/P&gt;&lt;P&gt;Rotation is set to a field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I a custom construction tool, from the currentTemplate property I can get the layer.&amp;nbsp; I have been navigating up and down the API reference but I haven't figured out how to get to the connected attribute for rotation.&lt;/P&gt;&lt;P&gt;Any hint would help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Mar 2016 17:30:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-connected-attribute-rotation-field/m-p/826364#M3047</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2016-03-18T17:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the connected attribute rotation field of a layer in pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-connected-attribute-rotation-field/m-p/826365#M3048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the information is stored as part of the renderer which is part of the layer. The way this information is stored is part of the CIM (cartographic information model).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please take a look at this code snippet to retrieve the information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var featureLayer = ActiveMapView.Map.GetLayersAsFlattenedList().OfType&amp;lt;FeatureLayer&amp;gt;().FirstOrDefault();
QueuedTask.Run(() =&amp;gt;
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; var cimRenderer = featureLayer.GetRenderer() as CIMUniqueValueRenderer;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var cimRotationVariable = cimRenderer.VisualVariables.OfType&amp;lt;CIMRotationVisualVariable&amp;gt;().FirstOrDefault();
&amp;nbsp;&amp;nbsp;&amp;nbsp; var rotationInfoZ = cimRotationVariable.VisualVariableInfoZ;
&amp;nbsp;&amp;nbsp;&amp;nbsp; var rotationExpression = rotationInfoZ.Expression; // this expression stores the field name
});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:56:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-connected-attribute-rotation-field/m-p/826365#M3048</guid>
      <dc:creator>ThomasEmge</dc:creator>
      <dc:date>2021-12-12T09:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the connected attribute rotation field of a layer in pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-connected-attribute-rotation-field/m-p/826366#M3049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas that is great.&amp;nbsp; I am new to ArcGIS Pro so I am still getting my feet wet.&lt;/P&gt;&lt;P&gt;I am surprise it is the VisualVariableInfoZ since I am dealing with a 2D map...&amp;nbsp; I guess it is around the Z axis which protrudes from the map...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 15:15:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-connected-attribute-rotation-field/m-p/826366#M3049</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2016-03-21T15:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to get the connected attribute rotation field of a layer in pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-connected-attribute-rotation-field/m-p/826367#M3050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct, the view understanding for Pro has been unified such that the code for 2D and 3D is essentially the same or very similar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information please take a look at the concept documentation for map exploration &lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Exploration" title="https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Map-Exploration"&gt;ProConcepts Map Exploration · Esri/arcgis-pro-sdk Wiki · GitHub&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Mar 2016 20:00:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-get-the-connected-attribute-rotation-field/m-p/826367#M3050</guid>
      <dc:creator>ThomasEmge</dc:creator>
      <dc:date>2016-03-21T20:00:19Z</dc:date>
    </item>
  </channel>
</rss>

