<?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 Extending Geometry Editing for Windows Tablet 10.1.1 in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/extending-geometry-editing-for-windows-tablet-10-1/m-p/571957#M2426</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like the ESRI Mobile Team to look at the fact that you can not create custom GeometryEditMethods or tie into edit method geomtry collection methods.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2013 21:20:45 GMT</pubDate>
    <dc:creator>JulieGuillory</dc:creator>
    <dc:date>2013-02-07T21:20:45Z</dc:date>
    <item>
      <title>Extending Geometry Editing for Windows Tablet 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/extending-geometry-editing-for-windows-tablet-10-1/m-p/571957#M2426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would like the ESRI Mobile Team to look at the fact that you can not create custom GeometryEditMethods or tie into edit method geomtry collection methods.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2013 21:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/extending-geometry-editing-for-windows-tablet-10-1/m-p/571957#M2426</guid>
      <dc:creator>JulieGuillory</dc:creator>
      <dc:date>2013-02-07T21:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Extending Geometry Editing for Windows Tablet 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/extending-geometry-editing-for-windows-tablet-10-1/m-p/571958#M2427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Julie,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recommend you submit your comment "&lt;/SPAN&gt;&lt;SPAN style="color:#333333;"&gt;I would like the ESRI Mobile Team to look at the fact that you can not create custom GeometryEditMethods or tie into edit method geometry collection methods." with &lt;/SPAN&gt;&lt;A href="http://support.esri.com/"&gt;Esri Support&lt;/A&gt;&lt;SPAN&gt; as ArcGIS for Windows Mobile enhancement request or you could post it on &lt;/SPAN&gt;&lt;A href="http://ideas.arcgis.com/ideaList?c=09a300000004xET&amp;amp;category=Mobile+GIS"&gt;ArcGIS Ideas&lt;/A&gt;&lt;SPAN&gt; &amp;gt; Mobile GIS site for other mobile users to comment and vote on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Denise&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 13:04:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/extending-geometry-editing-for-windows-tablet-10-1/m-p/571958#M2427</guid>
      <dc:creator>DeniseKing</dc:creator>
      <dc:date>2013-02-11T13:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extending Geometry Editing for Windows Tablet 10.1.1</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/extending-geometry-editing-for-windows-tablet-10-1/m-p/571959#M2428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been working on this myself.&amp;nbsp; I think my initial question, which I think I figured out, was a hook into the GeometryEditMethod.&amp;nbsp; The EditFeatureAttributesViewModel requires a feature to be passed to it so you can't add this eventhandler within the OnOwnerInitialized Sub as there is no selected feature at this time.&amp;nbsp; The CollectFeaturesTask seems very straight forward with the collectionstarted and collectionfinished which you can add no problem within the OnOwnerInitialized Sub.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I ended up doing was add an eventhandler to the manageeditstask.viewcollectedfeaturespage.EditFeatureClick event within the OnOwnerInitialized sub.&amp;nbsp; Within the editfeatureclick eventhandler I added the eventhandler for creatinggeometryeditoperations.&amp;nbsp; I can loop through and gett the current editoperations but when I loop through or try to add geometry collection methods none exist at this point and it won't add any either.&amp;nbsp; Any input would be appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a code sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Protected Overrides Sub OnOwnerInitialized()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If Not MobileApplication.Current.Dispatcher.CheckAccess() Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MobileApplication.Current.Dispatcher.BeginInvoke(DirectCast(Sub() OnOwnerInitialized(), System.Threading.ThreadStart))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;' Find the Collect Features task&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_collectFeaturesTask = TryCast(MobileApplication.Current.Project.Tasks.GetFirstExtensionOfType(GetType(CollectFeaturesTask)), CollectFeaturesTask)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If _collectFeaturesTask Is Nothing Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;�??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If _collectFeaturesTask IsNot Nothing Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AddHandler _collectFeaturesTask.CollectionStarted, AddressOf _collectFeaturesTask_CollectionStarted&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AddHandler _collectFeaturesTask.CollectionCompleted, AddressOf _collectFeaturesTask_CollectionCompleted&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;�??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;�??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_manageEditsTask = TryCast(MobileApplication.Current.Project.Tasks.GetFirstExtensionOfType(GetType(ManageEditsTask)), ManageEditsTask)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_ViewCollectedFeaturesPage = _manageEditsTask.ViewCollectedFeaturesPage&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If _manageEditsTask IsNot Nothing Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MessageBox.Show("Not nothing")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AddHandler _manageEditsTask.ViewCollectedFeaturesPage.EditFeatureClick, AddressOf _manageEditsTask_ViewCollectedFeaturesPage_EditFeatureClick&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;�??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;�??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim viewMapTask As ViewMapTask = TryCast(MobileApplication.Current.FindTask(GetType(ViewMapTask)), ViewMapTask)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If viewMapTask IsNot Nothing Then&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_homePage = viewMapTask.ViewMapPage&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End If&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Private Sub _manageEditsTask_ViewCollectedFeaturesPage_EditFeatureClick(sender As Object, e As FeatureEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;�??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_editFeatureAttributesViewModel = New EditFeatureAttributesViewModel(e.Feature)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_feature.BeginEdit()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AddHandler _editFeatureAttributesViewModel.CreatingGeometryEditOperations, AddressOf _editFeatureAttributesViewModel_CreatingGeometryEditOperations&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_editFeatureAttributesPage = New EditFeatureAttributesPage(_editFeatureAttributesViewModel)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AddHandler _editFeatureAttributesPage.ClickOk, AddressOf _editFeatureAttributesPage_ClickOk&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AddHandler _editFeatureAttributesPage.ClickCancel, AddressOf _editFeatureAttributesPage_ClickCancel&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_feature = _editFeatureAttributesViewModel.Feature&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim menuitem As MenuItem = New MenuItem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;menuitem.Header = "Add MGRS Location"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;menuitem.Command = AddLocationCommand2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_editFeatureAttributesPage.MenuItems.Add(menuitem)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MobileApplication.Current.Transition(_editFeatureAttributesPage)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Private Sub _editFeatureAttributesViewModel_CreatingGeometryEditOperations(sender As Object, e As CreatingGeometryEditOperationsEventArgs)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;_coordGeometryCollectionMethod = New MGRSGeometryCollectionMethod&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For Each method As GeometryEditMethod In e.GeometryEditMethods&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MessageBox.Show("edit method name is " &amp;amp; method.Name.ToString)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MessageBox.Show(" method.GeometryCollectionMethods.Count " &amp;amp; method.GeometryCollectionMethods.Count.ToString)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For Each gcm As GeometryCollectionMethod In method.GeometryCollectionMethods&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MessageBox.Show("geometry collection method name is " &amp;amp; method.Name.ToString)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;method.GeometryCollectionMethods.Add(_coordGeometryCollectionMethod)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;�??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;End Sub&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 14:26:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/extending-geometry-editing-for-windows-tablet-10-1/m-p/571959#M2428</guid>
      <dc:creator>JulieGuillory</dc:creator>
      <dc:date>2013-02-12T14:26:30Z</dc:date>
    </item>
  </channel>
</rss>

