<?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 Opening a schematic diagram in v.10 [C#] in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/opening-a-schematic-diagram-in-v-10-c/m-p/138372#M1586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're actually working on migrating 9.3 Schematics code into v.10 but we have some problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the 9.3 version, we used to use the method "OpenDiagram" (from the INgDiagramType) to open a schematic diagram in the current map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But impossible to find an equivalent to this method in the v.10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is anyone know which method to use instead? or if there's no equivalent, how can we try to open a diagram by code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;H.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2012 13:16:26 GMT</pubDate>
    <dc:creator>Hassene_Heridi</dc:creator>
    <dc:date>2012-08-23T13:16:26Z</dc:date>
    <item>
      <title>Opening a schematic diagram in v.10 [C#]</title>
      <link>https://community.esri.com/t5/mapping-questions/opening-a-schematic-diagram-in-v-10-c/m-p/138372#M1586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're actually working on migrating 9.3 Schematics code into v.10 but we have some problems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the 9.3 version, we used to use the method "OpenDiagram" (from the INgDiagramType) to open a schematic diagram in the current map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But impossible to find an equivalent to this method in the v.10.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is anyone know which method to use instead? or if there's no equivalent, how can we try to open a diagram by code?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;H.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 13:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/opening-a-schematic-diagram-in-v-10-c/m-p/138372#M1586</guid>
      <dc:creator>Hassene_Heridi</dc:creator>
      <dc:date>2012-08-23T13:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Opening a schematic diagram in v.10 [C#]</title>
      <link>https://community.esri.com/t5/mapping-questions/opening-a-schematic-diagram-in-v-10-c/m-p/138373#M1587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/#/DisplayDiagram_Method/003t0000001s000000/" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/#/DisplayDiagram_Method/003t0000001s000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should use the ISchematicDisplayDiagramHelper.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need first to have a handle to the ISchematicDataset, then you get the desired diagram class (the old diagram type).&amp;nbsp; From the class, you get the diagram and finally use the diagram helper to 'display' the diagram.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pSchematicDiagramClass As ISchematicDiagramClass&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Dim pDiagramClassContainer As ISchematicDiagramClassContainer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pDiagramClassContainer = m_pSchematicDataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pSchematicDiagramClass = pDiagramClassContainer.GetSchematicDiagramClass("INTERNAL_DIAGRAM")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim pDiagram As ISchematicDiagram&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; pDiagram = pSchematicDiagramClass.SchematicDiagramByName(plant_name)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;m_pDispDiagramHelper.DisplayDiagram(pDiagram, Nothing)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More information about migrating code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/d/000100000m29000000.htm" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/d/000100000m29000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2012 13:40:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/opening-a-schematic-diagram-in-v-10-c/m-p/138373#M1587</guid>
      <dc:creator>RickAnderson</dc:creator>
      <dc:date>2012-08-24T13:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: Opening a schematic diagram in v.10 [C#]</title>
      <link>https://community.esri.com/t5/mapping-questions/opening-a-schematic-diagram-in-v-10-c/m-p/138374#M1588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the answer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Aug 2012 10:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/opening-a-schematic-diagram-in-v-10-c/m-p/138374#M1588</guid>
      <dc:creator>Hassene_Heridi</dc:creator>
      <dc:date>2012-08-27T10:55:15Z</dc:date>
    </item>
  </channel>
</rss>

