<?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: ArcGIS Engine - Execute CreateRuntimeContent GeoProcess Command in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757911#M20101</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will create a small test project to test this but this is exactly what I was looking for. I don't know how I didn't see the CreateMapTilePackage withing the GeoProcessing namespace but I see it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Freddie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 16:41:18 GMT</pubDate>
    <dc:creator>JimFiddes</dc:creator>
    <dc:date>2015-07-22T16:41:18Z</dc:date>
    <item>
      <title>ArcGIS Engine - Execute CreateRuntimeContent GeoProcess Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757908#M20098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an ArcGIS Engine application and I'm attempting to provide a command to my end users which will allow them to create a *.tpk file from their map document (*.mxd). My goal is to have our clients use our Engine product to create a tile package which will be consumed within our new CAD ArcGIS Runtime .Net product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not all our clients will have access to ArcMap to create these tpk files so I would like to give them the ability to create these files in lieu of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prior to making this post I did scour the api documentation&amp;nbsp; ESRI.ArcGIS.DataManagementTools but couldn't come up with anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any help on how to move forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 15:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757908#M20098</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2015-07-22T15:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Engine - Execute CreateRuntimeContent GeoProcess Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757909#M20099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you needing to run the Create Map Tile Package data management tool against the geoprocessor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create Map Tile Package&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-map-tile-package.htm"&gt;http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/create-map-tile-package.htm&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 16:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757909#M20099</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-07-22T16:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Engine - Execute CreateRuntimeContent GeoProcess Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757910#M20100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tested it on my machine and everything appears to work fine. I used the managed approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;string mxdPath = BrowseForFile("Map Document", "Map Document (*.mxd)|*.mxd");


Geoprocessor gp = new Geoprocessor {OverwriteOutput = true};


try
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; CreateMapTilePackage tool = new CreateMapTilePackage
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_map = mxdPath,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; service_type = "ONLINE",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output_file = mxdPath.Replace(".mxd", ".tpk"),
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; format_type = "PNG",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; level_of_detail = 3,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; summary = "test",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tags = "test"
&amp;nbsp;&amp;nbsp;&amp;nbsp; };


&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeoProcessorResult2 result = gp.Execute(tool, null) as IGeoProcessorResult2;


&amp;nbsp;&amp;nbsp;&amp;nbsp; if (result.ReturnValue is string)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; object sev = 0;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(gp.GetMessages(ref sev));
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
catch (Exception ex)
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(ex.Message);
&amp;nbsp;&amp;nbsp;&amp;nbsp; object sev = 2;
&amp;nbsp;&amp;nbsp;&amp;nbsp; Console.WriteLine(gp.GetMessages(ref sev));
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:07:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757910#M20100</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2021-12-12T08:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Engine - Execute CreateRuntimeContent GeoProcess Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757911#M20101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will create a small test project to test this but this is exactly what I was looking for. I don't know how I didn't see the CreateMapTilePackage withing the GeoProcessing namespace but I see it now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Freddie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 16:41:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757911#M20101</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2015-07-22T16:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Engine - Execute CreateRuntimeContent GeoProcess Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757912#M20102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Freddie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've run this code is a small test project and I'm receiving an error in the Catch statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 001117: Map description property must be set&lt;/P&gt;&lt;P&gt;Failed to execute (CreateMapTilePackage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I look at the properties of CreateMapTilePackage, "Description" is not an option to assign. When I go into ArcMap and look at the wizard for create a tile package there, Description is an option. Thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 19:14:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757912#M20102</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2015-07-22T19:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Engine - Execute CreateRuntimeContent GeoProcess Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757913#M20103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prior to calling the tool you could open the map document with IMapDocument and then check or set the description using IDocumentInfo. I believe that description is the Comments property.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IDocumentInfo Interface&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/IDocumentInfo_Interface/0012000003z3000000/"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/IDocumentInfo_Interface/0012000003z3000000/&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 20:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757913#M20103</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-07-22T20:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Engine - Execute CreateRuntimeContent GeoProcess Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757914#M20104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That all worked perfectly and now I have an end control for my clients. Two issues become outstanding from this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create a TPK wihtin ArcMap that has 19 levels of details, it takes several hours (under estimated here) to complete and works out to be just under 1Gb in size. If I take the exact same project and run it through my code (as above), it takes 5 minutes (ish) and has a completion size of 12 mb. Something odd there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second issue is trying to setup events for a GeoProcess:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;var gp = new Geoprocessor { OverwriteOutput = true };&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;//gp.MessagesCreated += GpOnMessagesCreated;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;gp.ProgressChanged +=GpOnProgressChanged;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;gp.ToolExecuted += GpOnToolExecuted;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They don't appear to be firing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want me to start a new thread, just let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 19:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757914#M20104</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2015-07-24T19:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Engine - Execute CreateRuntimeContent GeoProcess Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757915#M20105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea...you may want to start a new thread for this. I think you'd need to use the executeAync method to fire those events. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 19:36:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757915#M20105</guid>
      <dc:creator>FreddieGibson</dc:creator>
      <dc:date>2015-07-24T19:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Engine - Execute CreateRuntimeContent GeoProcess Command</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757916#M20106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;New thread started for those with similar inquiries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/162615"&gt;https://community.esri.com/thread/162615&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 20:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcgis-engine-execute-createruntimecontent/m-p/757916#M20106</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2015-07-24T20:06:25Z</dc:date>
    </item>
  </channel>
</rss>

