<?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: VB.NET Layer set  SetMaxScale / SetMinScale in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406955#M11359</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;GKmieliauskas&lt;/P&gt;</description>
    <pubDate>Sun, 07 Apr 2024 20:09:39 GMT</pubDate>
    <dc:creator>SigurdurGesr</dc:creator>
    <dc:date>2024-04-07T20:09:39Z</dc:date>
    <item>
      <title>VB.NET Layer set  SetMaxScale / SetMinScale</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406883#M11355</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am try to set Layer&amp;nbsp;MaxScale it look like nothing happened&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;        Dim layerName As String = Layer_HR
        Dim HRLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType(Of BasicFeatureLayer)().FirstOrDefault(Function(l) l.Name.Equals(layerName))
        HRLayer.SetMaxScale(501)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Sigster&lt;/P&gt;</description>
      <pubDate>Sat, 06 Apr 2024 19:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406883#M11355</guid>
      <dc:creator>SigurdurGesr</dc:creator>
      <dc:date>2024-04-06T19:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET Layer set  SetMaxScale / SetMinScale</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406935#M11356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;At first, SetMaxScale must be called on MCT thread inside&amp;nbsp;QueuedTask.Run.&lt;/P&gt;&lt;P&gt;After setting new values open layer properties and check is values are specified (general tab).&lt;/P&gt;&lt;P&gt;Max value must be less then min value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GKmieliauskas_0-1712493491961.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100305i6C1FA1A2CCC6EC83/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GKmieliauskas_0-1712493491961.png" alt="GKmieliauskas_0-1712493491961.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have tried vb sample from community samples with values:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;                    multiPointLayer.SetMaxScale(1000000)

                    multiPointLayer.SetMinScale(5000000)
&lt;/LI-CODE&gt;&lt;P&gt;And it works as expected. It could be that your values are to small or not in expected range&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 12:40:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406935#M11356</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-04-07T12:40:56Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET Layer set  SetMaxScale / SetMinScale</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406939#M11357</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is MCT thread ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;        Dim layerName As String = Layer_NR
        Dim NRLayer = MapView.Active.Map.GetLayersAsFlattenedList().OfType(Of BasicFeatureLayer)().FirstOrDefault(Function(l) l.Name.Equals(layerName))
        QueuedTask.Run(Function()
                           NRLayer.SetMaxScale(1000000)
                           NRLayer.SetMinScale(5000000)
                       End Function)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 13:11:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406939#M11357</guid>
      <dc:creator>SigurdurGesr</dc:creator>
      <dc:date>2024-04-07T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET Layer set  SetMaxScale / SetMinScale</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406950#M11358</link>
      <description>&lt;P&gt;MCT means that you must call method inside&amp;nbsp;&lt;SPAN&gt;QueuedTask.Run. Like in your second code sample&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 16:49:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406950#M11358</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2024-04-07T16:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: VB.NET Layer set  SetMaxScale / SetMinScale</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406955#M11359</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;GKmieliauskas&lt;/P&gt;</description>
      <pubDate>Sun, 07 Apr 2024 20:09:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/vb-net-layer-set-setmaxscale-setminscale/m-p/1406955#M11359</guid>
      <dc:creator>SigurdurGesr</dc:creator>
      <dc:date>2024-04-07T20:09:39Z</dc:date>
    </item>
  </channel>
</rss>

