<?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: Getting the clipping layer extent from ArcGIS Pro? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827117#M3114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh, ok. Yea I doubt there is a way because the file is randomly generated it seems. You could possibly set something to clear that directory everytime you set a clip shape and then read the 1 file generated when you set it. Or just read the last file generated in the Temp directory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2020 17:51:03 GMT</pubDate>
    <dc:creator>JamalWest2</dc:creator>
    <dc:date>2020-03-12T17:51:03Z</dc:date>
    <item>
      <title>Getting the clipping layer extent from ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827113#M3110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to retrieve the clipping extent that I defined in the Map Properties &amp;gt; Clip Layers. I found there are a couple properties from CIMMap such as ClippingMode and LayersExcludedFromClipping that indicate that we are clipping layers.&amp;nbsp;GetCustomFullExtent() from the MapView.Map and CIMMap classes only retrieve the custom extent defined in the Extent Map Properties, which may be different than the extent define in Clip Layers.&amp;nbsp;Is there a class or method that can retrieve the actual clipping layer extent?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;Hannah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 21:49:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827113#M3110</guid>
      <dc:creator>HannahBernal</dc:creator>
      <dc:date>2020-03-10T21:49:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the clipping layer extent from ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827114#M3111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings.&amp;nbsp; I am a colleague of Hannah, and I believe we have found a solution. The case we are concerned with is when&amp;nbsp;CIMMap.ClippingMode = CustomShape, which occurs when through the UI you go to map properties, Clip Layers, and use one of the custom clipping modes.&amp;nbsp; When in this mode, the CIMMap.CustomClippingShapeURI returns a string of the form:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;“CIMPATH=ClipShape/61ef717a9e874218e6fcf85c78f9497e.dat”&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;We found this file residing under %TEMP%.&amp;nbsp; Is there an API call that will assist in constructing the absolute path to this file, or can we simply rely on finding it in a consistent location under %TEMP%?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our objective is to retrieve the custom clipping shape, and through experimentation we discovered that the contents of the file is the geometry in EsriShape binary format.&amp;nbsp; The code below retrieves the geometry from the URI.&amp;nbsp; Do you see any potential problems with what we're doing here?&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;string path = "C:\\Temp\\61ef717a9e874218e6fcf85c78f9497e.dat";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;byte[] buffer = File.ReadAllBytes(path);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; EsriShapeImportFlags importFlags = EsriShapeImportFlags.esriShapeImportDefaults;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Polygon clip_poly = GeometryEngine.Instance.ImportFromEsriShape(importFlags, buffer, SpatialReferences.WGS84) as Polygon;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 08:23:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827114#M3111</guid>
      <dc:creator>MichaelPanlasigui</dc:creator>
      <dc:date>2020-03-12T08:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the clipping layer extent from ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827115#M3112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been attempting to do something similar and according to the developer this is an issue that they will try to address/fix with 2.6 release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/248821-is-there-a-way-to-clip-map-to-features-via-sdk"&gt;See here&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 17:28:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827115#M3112</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2020-03-12T17:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the clipping layer extent from ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827116#M3113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jamal.&amp;nbsp; Yes, I've looked through your post.&amp;nbsp; We aren't trying to set the clip shape, but retrieve what was set through the UI.&amp;nbsp; I was hoping the API would just give me the shape.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 17:33:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827116#M3113</guid>
      <dc:creator>MichaelPanlasigui</dc:creator>
      <dc:date>2020-03-12T17:33:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the clipping layer extent from ArcGIS Pro?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827117#M3114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh, ok. Yea I doubt there is a way because the file is randomly generated it seems. You could possibly set something to clear that directory everytime you set a clip shape and then read the 1 file generated when you set it. Or just read the last file generated in the Temp directory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 17:51:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/getting-the-clipping-layer-extent-from-arcgis-pro/m-p/827117#M3114</guid>
      <dc:creator>JamalWest2</dc:creator>
      <dc:date>2020-03-12T17:51:03Z</dc:date>
    </item>
  </channel>
</rss>

