<?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: ClippingMode in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876992#M5467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/23448"&gt;Charles Macleod&lt;/A&gt;‌ I was wondering if there was a bug or report number for this issue. Also I found that this doesn't work with arcpy either. How can I go about creating a bug or ticket for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2020 15:41:30 GMT</pubDate>
    <dc:creator>JamalWest2</dc:creator>
    <dc:date>2020-03-11T15:41:30Z</dc:date>
    <item>
      <title>ClippingMode</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876988#M5463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to set a custom definition on a map. I want to use a single feature as the clipping shape. The single feature is its own layer. I am trying to use the definition.CustomClippingShapeURI to set the shape and then setTheDefinition. As you can see below I am using a string for the URI. I got this string after using console to capture the URI using the layer before. "In other words this is how the URI is returned if I define it as a path. This doesn't work though.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I set ClippingMode to ClippingMode.MapExtent that works as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; jw3 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mapFrameMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetDefinition&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
jw3&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ClippingMode &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ClippingMode&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CustomShape&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; lyrOfInterest &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mapFrameMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetLayersAsFlattenedList&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OfType&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;FeatureLayer&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FirstOrDefault&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
jw3&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CustomClippingShapeURI &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Assessor Map/JWtest"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
mapFrameMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;SetDefinition&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;jw3&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have also tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; lyrOfInterest &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mapFrameMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetLayersAsFlattenedList&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;OfType&lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt;FeatureLayer&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FirstOrDefault&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; jw3 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mapFrameMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetDefinition&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
CIMClippingPath path1 &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;CIMClippingPath&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
path1&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; lyrOfInterest&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;URI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToString&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
jw3&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ClippingMode &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; ClippingMode&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CustomShape&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
jw3&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CustomClippingShapeURI &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; path1&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
MessageBox&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;jw3&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CustomClippingShapeURI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;ToString&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
mapFrameMap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;SetDefinition&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;jw3&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This does not work either. Does anybody know how to properly use the CustomShapeURI mode??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/10927" target="_blank"&gt;Wolfgang Kaiser&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/86730" target="_blank"&gt;Uma Harano&lt;/A&gt;&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/23448" target="_blank"&gt;Charles Macleod&lt;/A&gt;&amp;nbsp;- Do any of you have suggestions for using CustomClippingshapeURI for ClippingMode on the map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 11:00:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876988#M5463</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2021-12-12T11:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: ClippingMode</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876989#M5464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did some further investigating on this. I created a layout with a clip shape defined and then in my code set it to show the uri of the shape which is the same layer I was trying to set by code and this is what it returned as the URI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;CIMPATH=ClipShape/421927d3f9312efaf054b5aa08f76003.dat&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;i'm not sure how it created that URI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 16:48:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876989#M5464</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2020-02-28T16:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: ClippingMode</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876990#M5465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jamal, yes, I investigated this and setting clipping on the map is not currently possible via the API. I have passed on the requirement to the mapping team. It will be targeted for release at 2.6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 17:43:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876990#M5465</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2020-03-03T17:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: ClippingMode</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876991#M5466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply!! I'm wondering, are you saying that using clip as an EditOperation also does not work. I have also tried using that to just clip features i want using my bounding box and it hasn't work.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;var oid = feature.GetObjectID();&lt;BR /&gt; // var Polygon = PolygonCreated before;&lt;BR /&gt; var cl1 = new EditOperation();&lt;BR /&gt; cl1.Name = "ClipFunction";&lt;BR /&gt; cl1.Clip(lyr, oid, poly, ClipMode.DiscardArea);&lt;BR /&gt; cl1.Execute();&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 18:07:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876991#M5466</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2020-03-03T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: ClippingMode</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876992#M5467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/23448"&gt;Charles Macleod&lt;/A&gt;‌ I was wondering if there was a bug or report number for this issue. Also I found that this doesn't work with arcpy either. How can I go about creating a bug or ticket for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:41:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876992#M5467</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2020-03-11T15:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: ClippingMode</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876993#M5468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we have two separate things going on here and please confirm:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;You originally were asking can you specify a clipping polygon for the map via the API, is that right? The answer is no. You cannot and this will be added for 2.6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You are using EditOperation.Clip to "manually" clip features and you have encountered a bug, is that right? So no, my statement regarding 1) , map clipping, is not related. To submit a bug please contact tech support. This post may help:&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-6258"&gt;How to report a bug in ArcGIS Pro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: just looking at your code above, I believe the result you are looking for requires&amp;nbsp;ClipMode.&lt;STRONG&gt;PreserveArea &lt;/STRONG&gt;not DiscardArea&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:36:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876993#M5468</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2020-03-11T17:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: ClippingMode</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876994#M5469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Charles,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes those 2 questions were relating to separate things.&amp;nbsp;What I've found now is that the issue we find in the API that you detailed in section 1 where you can not specify a clipping polygon for the map is also a problem in arcpy. Also in reference to your note, neither PreserveArea nor DiscardArea work. At this point I have just decided to just move forward.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/876994#M5469</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2020-03-11T17:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: ClippingMode</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/1037228#M6355</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/145101"&gt;@CharlesMacleod&lt;/a&gt;&amp;nbsp;has this functionality been enabled?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 18:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/1037228#M6355</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2021-03-16T18:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: ClippingMode</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/1037248#M6356</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic29485.html" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic29485.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 18:29:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/1037248#M6356</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2021-03-16T18:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: ClippingMode</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/1037384#M6359</link>
      <description>&lt;P&gt;Is this also applicable in python/arcpy? I haven't been able to find anything detailing it.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 22:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/clippingmode/m-p/1037384#M6359</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2021-03-16T22:27:56Z</dc:date>
    </item>
  </channel>
</rss>

