<?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 MeasureTool in 10.2.2 What to replace with? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/measuretool-in-10-2-2-what-to-replace-with/m-p/406712#M10874</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 am porting an ArcGIS Engine application from version 10.0 to version 10.2.2. The application is written in Visual C++ (2010).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application uses the geodesy MeasureTool that used to be provided by the DefenseSolutions.dll. This has now gone, what should I replace the MeasureTool calls with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample code snippet (in Visual C++) is shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green;"&gt;m_measureTool.CreateInstance(CLSID_MeasurementTool);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green;"&gt;m_measureTool-&amp;gt;SpecialGeolineType = cjmtkSGTGeodesic;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green;"&gt;m_measureTool-&amp;gt;PutRefSpecialSpatialReference(baseSpatialReference);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green;"&gt;m_measureTool-&amp;gt;ConstructByPointDistAngle(centre,radius,bearing);&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green;"&gt;where m_measureTool is IMeasureToolPtr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ArcObjects 10.2.2 VC++ 2010 help for ESRI (that is installed as part of the ArcGIS Engine Developer Kit) still refers to ESRI.ArcGIS.DefenseSolutions. It also states that it is available in ArcGIS Engine and ArcGIS Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Company is Thales, using Visual Studio C++ 2010, Windows XP SP3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tuckers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Aug 2014 14:03:56 GMT</pubDate>
    <dc:creator>MatthewTucknott</dc:creator>
    <dc:date>2014-08-06T14:03:56Z</dc:date>
    <item>
      <title>MeasureTool in 10.2.2 What to replace with?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/measuretool-in-10-2-2-what-to-replace-with/m-p/406712#M10874</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 am porting an ArcGIS Engine application from version 10.0 to version 10.2.2. The application is written in Visual C++ (2010).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application uses the geodesy MeasureTool that used to be provided by the DefenseSolutions.dll. This has now gone, what should I replace the MeasureTool calls with?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample code snippet (in Visual C++) is shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green;"&gt;m_measureTool.CreateInstance(CLSID_MeasurementTool);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green;"&gt;m_measureTool-&amp;gt;SpecialGeolineType = cjmtkSGTGeodesic;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green;"&gt;m_measureTool-&amp;gt;PutRefSpecialSpatialReference(baseSpatialReference);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green;"&gt;m_measureTool-&amp;gt;ConstructByPointDistAngle(centre,radius,bearing);&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; font-family: Consolas; color: green;"&gt;where m_measureTool is IMeasureToolPtr&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ArcObjects 10.2.2 VC++ 2010 help for ESRI (that is installed as part of the ArcGIS Engine Developer Kit) still refers to ESRI.ArcGIS.DefenseSolutions. It also states that it is available in ArcGIS Engine and ArcGIS Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Company is Thales, using Visual Studio C++ 2010, Windows XP SP3. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tuckers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 14:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/measuretool-in-10-2-2-what-to-replace-with/m-p/406712#M10874</guid>
      <dc:creator>MatthewTucknott</dc:creator>
      <dc:date>2014-08-06T14:03:56Z</dc:date>
    </item>
  </channel>
</rss>

