<?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 Output results not added to the view in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/output-results-not-added-to-the-view/m-p/111507#M2920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing a geoprocessing extension that generates output layers. Layers are created (by an external geoprocessing library) and I use the following Java code to set them as value of the corresponding output parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;final IGPValue gpValue = (IGPValue) gpUtilities.makeGPLayerFromLayer((ILayer) value);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gpUtilities.packGPValue(gpValue, outputParam);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked that the GPLayer is created and that, after that last line, the outputParam contains a reference to the layer. However, when the execution is finished, the layer is not added to the view. I can manually open it, and see that the layer has been correctly created, but I guess I am doing something wrong, since the outputs are not added to the display (and the "Add results of geoprocessing operations to the display" is checked).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone has any idea about why this is happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Victor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2011 09:01:43 GMT</pubDate>
    <dc:creator>VictorOlaya</dc:creator>
    <dc:date>2011-08-11T09:01:43Z</dc:date>
    <item>
      <title>Output results not added to the view</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/output-results-not-added-to-the-view/m-p/111507#M2920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing a geoprocessing extension that generates output layers. Layers are created (by an external geoprocessing library) and I use the following Java code to set them as value of the corresponding output parameters&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;final IGPValue gpValue = (IGPValue) gpUtilities.makeGPLayerFromLayer((ILayer) value);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gpUtilities.packGPValue(gpValue, outputParam);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have checked that the GPLayer is created and that, after that last line, the outputParam contains a reference to the layer. However, when the execution is finished, the layer is not added to the view. I can manually open it, and see that the layer has been correctly created, but I guess I am doing something wrong, since the outputs are not added to the display (and the "Add results of geoprocessing operations to the display" is checked).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone has any idea about why this is happening?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Victor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2011 09:01:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/output-results-not-added-to-the-view/m-p/111507#M2920</guid>
      <dc:creator>VictorOlaya</dc:creator>
      <dc:date>2011-08-11T09:01:43Z</dc:date>
    </item>
  </channel>
</rss>

