<?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 Clipfilter from ImapClipOptions doesn't work in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/clipfilter-from-imapclipoptions-doesn-t-work/m-p/828#M3</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problem using the interface IMapClipOptions, about ClipFilter property.&lt;/P&gt;&lt;P&gt;I can successfully enable the clipping of a dataframe, but not excluding layers from the clipping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting it manually, I can get programmatically the Layer the is in the ISet of the excluded layers, I can remove them, but I cannot set it.&lt;/P&gt;&lt;P&gt;I'm testing i in VBA, ArcGIS for Desktop 10.3 (Advanced).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the piece of code that I'm testing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;Dim pDoc As IMxDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pMap As IMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pMapClipOptions As IMapClipOptions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pActiveView As IActiveView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pGeometry As IGeometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pLayer As ILayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pLSet As ISet&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pGeometry = fnvFClass_GetByName("Taglio_2K_Mask").GetFeature(173).ShapeCopy&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pDoc = ThisDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pMap = pDoc.FocusMap&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pMapClipOptions = pMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pLayer = pMap.Layer(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pMapClipOptions.ClipType = esriMapClipShape&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pLSet = New esriSystem.Set&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pLSet.Add pLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pMapClipOptions.ClipFilter = pLSet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pMap.ClipGeometry = pGeometry&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pActiveView = pMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pActiveView.Refresh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only custom code is the one used to get the geometry for the clipping.&lt;/P&gt;&lt;P&gt;Any idea about what could be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Francesco N. Vespucci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Oct 2016 15:49:44 GMT</pubDate>
    <dc:creator>S_I_T__srlServizi_di_Informazi</dc:creator>
    <dc:date>2016-10-14T15:49:44Z</dc:date>
    <item>
      <title>Clipfilter from ImapClipOptions doesn't work</title>
      <link>https://community.esri.com/t5/developers-questions/clipfilter-from-imapclipoptions-doesn-t-work/m-p/828#M3</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problem using the interface IMapClipOptions, about ClipFilter property.&lt;/P&gt;&lt;P&gt;I can successfully enable the clipping of a dataframe, but not excluding layers from the clipping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting it manually, I can get programmatically the Layer the is in the ISet of the excluded layers, I can remove them, but I cannot set it.&lt;/P&gt;&lt;P&gt;I'm testing i in VBA, ArcGIS for Desktop 10.3 (Advanced).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the piece of code that I'm testing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt;Dim pDoc As IMxDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pMap As IMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pMapClipOptions As IMapClipOptions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pActiveView As IActiveView&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pGeometry As IGeometry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pLayer As ILayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Dim pLSet As ISet&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pGeometry = fnvFClass_GetByName("Taglio_2K_Mask").GetFeature(173).ShapeCopy&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pDoc = ThisDocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pMap = pDoc.FocusMap&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pMapClipOptions = pMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pLayer = pMap.Layer(0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pMapClipOptions.ClipType = esriMapClipShape&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pLSet = New esriSystem.Set&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pLSet.Add pLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pMapClipOptions.ClipFilter = pLSet&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pMap.ClipGeometry = pGeometry&lt;/SPAN&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; Set pActiveView = pMap&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace; font-size: 12px;"&gt; pActiveView.Refresh&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only custom code is the one used to get the geometry for the clipping.&lt;/P&gt;&lt;P&gt;Any idea about what could be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Francesco N. Vespucci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2016 15:49:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/clipfilter-from-imapclipoptions-doesn-t-work/m-p/828#M3</guid>
      <dc:creator>S_I_T__srlServizi_di_Informazi</dc:creator>
      <dc:date>2016-10-14T15:49:44Z</dc:date>
    </item>
  </channel>
</rss>

