<?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: Creating an embeddable control implementing IEditingCreateToolControl in construction tool in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014944#M5947</link>
    <description>&lt;P&gt;So now... as the compiler error says you will need to override the LoadFromToolOptions method.&amp;nbsp; &amp;nbsp;This method is used to populate your option value from the internal tool Options structure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The BuffereredLineToolOptionsViewModel in the ConstructionToolWithOptions community sample has an example of this function.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override Task LoadFromToolOptions()
{
double? buffer = GetToolOption&amp;lt;double?&amp;gt;(nameof(BufferOptionName), DefaultBuffer, null);
_buffer = buffer.Value;

return Task.CompletedTask;
}
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 01:04:22 GMT</pubDate>
    <dc:creator>NarelleChedzey</dc:creator>
    <dc:date>2021-01-08T01:04:22Z</dc:date>
    <item>
      <title>Creating an embeddable control implementing IEditingCreateToolControl in construction tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014762#M5936</link>
      <description>&lt;P&gt;I am trying to write a construction tool that uses an embeddable control so I can control the attributes the users put in when the create the features (points).&amp;nbsp; I found a pretty informative Dev Summit session video "ArcGIS Pro SDK for .NET Advanced Editing with Focus on UI Customization", that has to do with pretty much what I need to do so I know it's possible.&amp;nbsp; There is a point in the session where the demo shows the EmbeddableControl implementing IEditingCreateToolControl, and there is also a region in the code for that.&amp;nbsp; To get that to work, the refID in the config.daml for the embeddablecontrol has to be "esri_editing_tool_options", which I set up, as well as everything else the demo showed to set up.&amp;nbsp; However, this is still not working for me, I'm thinking maybe a step was left out in the demo?&amp;nbsp; Or possibly something I set up was wrong, even though I've been through the demo multiple times, double and triple checked spelling, etc.&amp;nbsp; I've also tried to find samples on github (not much out there for this, the ConstructionTool Buffer Line project was about the only one that I could find.&lt;/P&gt;&lt;P&gt;Thank you in advance for any info that could help me get over this step...&lt;/P&gt;&lt;P&gt;Jeff&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the declaration in the viewmodel:&lt;/P&gt;&lt;P&gt;namespace ProAddressApplication&lt;BR /&gt;{&lt;BR /&gt;internal class CreatePoints_UIViewModel : EmbeddableControl, IEditingCreateToolControl&amp;nbsp; &amp;nbsp;(the IEditingCreateToolControl shows underlined in red)&lt;BR /&gt;{&lt;BR /&gt;public CreatePoints_UIViewModel(XElement options, bool canChangeOptions) : base(options, canChangeOptions) { }&lt;/P&gt;&lt;P&gt;The config.daml text is below:&lt;/P&gt;&lt;P&gt;&amp;lt;ArcGIS defaultAssembly="ProAddressApplication.dll" defaultNamespace="ProAddressApplication" xmlns="&lt;A href="http://schemas.esri.com/DADF/Registry" target="_blank"&gt;http://schemas.esri.com/DADF/Registry&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" target="_blank"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xsi:schemaLocation="&lt;A href="http://schemas.esri.com/DADF/Registry" target="_blank"&gt;http://schemas.esri.com/DADF/Registry&lt;/A&gt; file:///C:/Program%20Files/ArcGIS/Pro/bin/ArcGIS.Desktop.Framework.xsd"&amp;gt;&lt;BR /&gt;&amp;lt;AddInInfo id="{0fdd9676-2c6b-455b-b17d-84afcd1d0981}" version="1.0" desktopVersion="2.7.26828"&amp;gt;&lt;BR /&gt;&amp;lt;Name&amp;gt;ProAddressApplication&amp;lt;/Name&amp;gt;&lt;BR /&gt;&amp;lt;Description&amp;gt;ProAddressApplication description&amp;lt;/Description&amp;gt;&lt;BR /&gt;&amp;lt;Image&amp;gt;Images\AddinDesktop32.png&amp;lt;/Image&amp;gt;&lt;BR /&gt;&amp;lt;Author&amp;gt;jeffs&amp;lt;/Author&amp;gt;&lt;BR /&gt;&amp;lt;Company&amp;gt;Acme&amp;lt;/Company&amp;gt;&lt;BR /&gt;&amp;lt;Date&amp;gt;1/7/2021 8:39:29 AM&amp;lt;/Date&amp;gt;&lt;BR /&gt;&amp;lt;Subject&amp;gt;Framework&amp;lt;/Subject&amp;gt;&lt;BR /&gt;&amp;lt;!-- Note subject can be one or more of these topics:&lt;BR /&gt;Content, Framework, Editing, Geodatabase, Geometry, Geoprocessing, Layouts, Map Authoring, Map Exploration --&amp;gt;&lt;BR /&gt;&amp;lt;/AddInInfo&amp;gt;&lt;BR /&gt;&amp;lt;modules&amp;gt;&lt;BR /&gt;&amp;lt;insertModule id="ProAddressApplication_Module" className="Module1" autoLoad="false" caption="Module1"&amp;gt;&lt;BR /&gt;&amp;lt;!-- uncomment to have the control hosted on a separate tab--&amp;gt;&lt;BR /&gt;&amp;lt;tabs&amp;gt;&lt;BR /&gt;&amp;lt;!--&amp;lt;tab id="ProAddressApplication_Tab1" caption="New Tab"&amp;gt;&lt;BR /&gt;&amp;lt;group refID="ProAddressApplication_Group1"/&amp;gt;&lt;BR /&gt;&amp;lt;/tab&amp;gt;--&amp;gt;&lt;BR /&gt;&amp;lt;/tabs&amp;gt;&lt;BR /&gt;&amp;lt;groups&amp;gt;&lt;BR /&gt;&amp;lt;!-- comment this out if you have no controls on the Addin tab to avoid&lt;BR /&gt;an empty group--&amp;gt;&lt;BR /&gt;&amp;lt;group id="ProAddressApplication_Group1" caption="Group 1" appearsOnAddInTab="true"&amp;gt;&lt;BR /&gt;&amp;lt;!-- host controls within groups --&amp;gt;&lt;BR /&gt;&amp;lt;/group&amp;gt;&lt;BR /&gt;&amp;lt;/groups&amp;gt;&lt;BR /&gt;&amp;lt;controls&amp;gt;&lt;BR /&gt;&amp;lt;!-- add your controls here --&amp;gt;&lt;BR /&gt;&amp;lt;tool id="ProAddressApplication_AddrApp_CreatePoints"&lt;BR /&gt;categoryRefID="esri_editing_construction_point"&lt;BR /&gt;caption="AddrApp _CreatePoints"&lt;BR /&gt;className="AddrApp_CreatePoints"&lt;BR /&gt;loadOnClick="true"&lt;BR /&gt;smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonRed16.png"&lt;BR /&gt;largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonRed32.png"&amp;gt;&lt;BR /&gt;&amp;lt;!--note: use esri_editing_construction_polyline, esri_editing_construction_polygon for categoryRefID as needed--&amp;gt;&lt;BR /&gt;&amp;lt;tooltip heading="Tooltip Heading"&amp;gt;Tooltip text&amp;lt;disabledText /&amp;gt;&amp;lt;/tooltip&amp;gt;&lt;BR /&gt;&amp;lt;content guid="93be836c-5a92-4930-8075-c3ecd893a6be" toolOptionsID="ProAddressApplication_CreatePoints_UI" /&amp;gt;&lt;BR /&gt;&amp;lt;/tool&amp;gt;&lt;BR /&gt;&amp;lt;/controls&amp;gt;&lt;BR /&gt;&amp;lt;/insertModule&amp;gt;&lt;BR /&gt;&amp;lt;/modules&amp;gt;&lt;BR /&gt;&amp;lt;categories&amp;gt;&lt;BR /&gt;&amp;lt;updateCategory refID="esri_editing_tool_options"&amp;gt;&lt;BR /&gt;&amp;lt;insertComponent id="ProAddressApplication_CreatePoints_UI" className="CreatePoints_UIViewModel"&amp;gt;&lt;BR /&gt;&amp;lt;content className="CreatePoints_UIView" /&amp;gt;&lt;BR /&gt;&amp;lt;/insertComponent&amp;gt;&lt;BR /&gt;&amp;lt;/updateCategory&amp;gt;&lt;BR /&gt;&amp;lt;/categories&amp;gt;&lt;BR /&gt;&amp;lt;/ArcGIS&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 18:12:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014762#M5936</guid>
      <dc:creator>JeffreySauder</dc:creator>
      <dc:date>2021-01-07T18:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an embeddable control implementing IEditingCreateToolControl in construction tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014865#M5943</link>
      <description>&lt;P&gt;Hi Jeffrey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you could answer the following questions that would help me in trying to work out the problem&lt;/P&gt;&lt;P&gt;First... I see from the config.daml desktopVersion attribute that you're using 2.7 with Pro and the Pro SDK.&amp;nbsp; Can you confirm this please.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You said that the&amp;nbsp;&lt;SPAN&gt;IEditingCreateToolControl has a red squiggle underline in visual studio.&amp;nbsp; What does the tooltip say if you hover over the squiggle.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also are you able to compile (choose a rebuild rather than just build)?&amp;nbsp; I wouldn't expect you to be able to compile if there is a red squiggle in the code,&amp;nbsp; so if you're able to run Pro with the add-in installed it might be running a version that is not up to date and in synch with your code.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Narelle&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 21:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014865#M5943</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-01-07T21:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an embeddable control implementing IEditingCreateToolControl in construction tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014879#M5944</link>
      <description>&lt;P&gt;Hi Narelle,&lt;/P&gt;&lt;P&gt;I am using Pro 2.7 with the Pro SDK (visual studio 2019).&lt;/P&gt;&lt;P&gt;I remember working on this around a year or so ago, with the same results, probably on Pro 2.4 or 2.5.&amp;nbsp; I had other projects come up and had to put this one off for a bit.&lt;/P&gt;&lt;P&gt;I attached a screenshot, the text when I hover over the IEditingCreateToolControl is quite large.&amp;nbsp; You can also see the error list after the rebuild.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 22:02:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014879#M5944</guid>
      <dc:creator>JeffreySauder</dc:creator>
      <dc:date>2021-01-07T22:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an embeddable control implementing IEditingCreateToolControl in construction tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014892#M5945</link>
      <description>&lt;P&gt;Jeffry,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change your class definition of your viewModel to the following&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;internal class CreatePoints_UIViewModel : &lt;STRONG&gt;ToolOptionsEmbeddableControl&lt;/STRONG&gt;, IEditingCreateToolControl&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The ToolOptionsEmbeddableControl inherits from EmbeddableControl but also implements the methods of&amp;nbsp;IEditingCreateToolControl.&amp;nbsp; This should fix your problem.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking back at the DevSummit presentation we mentioned adding an EmbeddableControl, but missed mentioning having to change to the ToolOptionsEmbeddableControl.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;let me know if you still have problems after making this change.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Narelle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 22:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014892#M5945</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-01-07T22:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an embeddable control implementing IEditingCreateToolControl in construction tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014906#M5946</link>
      <description>&lt;P&gt;Hi Narelle,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; I did that, i guess it's a little better but still has errors, shown in the screenshot.&amp;nbsp; I think I did try that before, the ConstructionToolWithOptions sample from github uses that also.&lt;/P&gt;&lt;P&gt;I also don't see the region for the tool, in the screenshot from the Demo in the video&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 22:40:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014906#M5946</guid>
      <dc:creator>JeffreySauder</dc:creator>
      <dc:date>2021-01-07T22:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an embeddable control implementing IEditingCreateToolControl in construction tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014944#M5947</link>
      <description>&lt;P&gt;So now... as the compiler error says you will need to override the LoadFromToolOptions method.&amp;nbsp; &amp;nbsp;This method is used to populate your option value from the internal tool Options structure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The BuffereredLineToolOptionsViewModel in the ConstructionToolWithOptions community sample has an example of this function.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;protected override Task LoadFromToolOptions()
{
double? buffer = GetToolOption&amp;lt;double?&amp;gt;(nameof(BufferOptionName), DefaultBuffer, null);
_buffer = buffer.Value;

return Task.CompletedTask;
}
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 01:04:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1014944#M5947</guid>
      <dc:creator>NarelleChedzey</dc:creator>
      <dc:date>2021-01-08T01:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an embeddable control implementing IEditingCreateToolControl in construction tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1015136#M5950</link>
      <description>&lt;P&gt;The session code is in this zip file:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://esri.github.io/arcgis-pro-sdk/techsessions/2020/PalmSprings/Advanced_Editing.zip" target="_blank"&gt;https://esri.github.io/arcgis-pro-sdk/techsessions/2020/PalmSprings/Advanced_Editing.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 18:08:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1015136#M5950</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-01-08T18:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an embeddable control implementing IEditingCreateToolControl in construction tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1015514#M5958</link>
      <description>&lt;P&gt;Thank you Narelle, that seems to have got me past that step.&amp;nbsp; I can now continue moving forward.&amp;nbsp; I appreciate your assistance very much!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 13:52:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1015514#M5958</guid>
      <dc:creator>JeffreySauder</dc:creator>
      <dc:date>2021-01-11T13:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an embeddable control implementing IEditingCreateToolControl in construction tool</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1015515#M5959</link>
      <description>&lt;P&gt;Kirk,&lt;/P&gt;&lt;P&gt;Thank you for that code, that will definitely help me in figuring all this out.&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 13:53:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/creating-an-embeddable-control-implementing/m-p/1015515#M5959</guid>
      <dc:creator>JeffreySauder</dc:creator>
      <dc:date>2021-01-11T13:53:23Z</dc:date>
    </item>
  </channel>
</rss>

