<?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: How to get SchematicInMemoryFeatureClass with java api ? in Mapping Questions</title>
    <link>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91150#M1074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not a java expert, so I can't be certain...&amp;nbsp; Anyway, the line you have commented out looks like it should be the better line to use.&amp;nbsp; In C# the code you want would look like this (and works just fine on several samples I have):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ISchematicInMemoryFeatureClassContainer sifcc =(ISchematicInMemoryFeatureClassContainer) inMemoryDiagram;&lt;BR /&gt;&lt;BR /&gt;IEnumSchematicInMemoryFeatureClass enumInMemoryFC = sifcc.getSchematicInMemoryFeatureClasses();&lt;BR /&gt;&lt;BR /&gt;enumInMemoryFC.reset();&lt;BR /&gt;&lt;BR /&gt;ISchematicInMemoryFeatureClass schInMrmoryFeatureClass = enumInMemoryFC.next();&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thx very much. i try another method getSchematicInMemoryFeatureClass(schemElementClass),but it stall not work. the code as follow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISchematicLayer schematicLry = (ISchematicLayer) hookHelper&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.getFocusMap().getLayer(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;schematicLry.startEditSchematicDiagram(false);// &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISchematicInMemoryDiagram inMemoryDiagram = schematicLry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.getSchematicInMemoryDiagram();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IEnumSchematicElementClass enumElementClass = inMemoryDiagram.getSchematicDiagramClass().getAssociatedSchematicElementClasses();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enumElementClass.getCount();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enumElementClass.reset();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISchematicElementClass schemElementClass = enumElementClass.next();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(schemElementClass!=null){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;schemElementClass.getName();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ISchematicInMemoryFeatureClassContainer sifcc =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (ISchematicInMemoryFeatureClassContainer) inMemoryDiagram;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ISchematicInMemoryFeatureClass schematicInMemoryFeatureClass= sifcc.getSchematicInMemoryFeatureClass(schemElementClass);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&amp;nbsp; schematicInMemoryFeatureClass.createSchematicInMemoryFeatureNode(point,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// "");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; schemElementClass = enumElementClass.next();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this method of get schematicInMemoryFeatureClass has been shown in esri demo of .net, but why it is not work with java code? my God!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2011 00:30:29 GMT</pubDate>
    <dc:creator>joshuasun</dc:creator>
    <dc:date>2011-02-25T00:30:29Z</dc:date>
    <item>
      <title>How to get SchematicInMemoryFeatureClass with java api ?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91147#M1071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i want to edit schemtaic diagram,including add or delete feature of node and link .first i have to get SchematicInMemoryFeatureClass from SchematicInMemoryDiagram.but the problem is that i can not &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;do it with java api.the code as show :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ISchematicLayer schematicLry = (ISchematicLayer) hookHelper&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getFocusMap().getLayer(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; schematicLry.startEditSchematicDiagram(false);&amp;nbsp;&amp;nbsp;&amp;nbsp; ISchematicInMemoryDiagram inMemoryDiagram = schematicLry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getSchematicInMemoryDiagram();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;STRONG&gt;// ISchematicInMemoryFeatureClassContainer sifcc =(ISchematicInMemoryFeatureClassContainer) inMemoryDiagram;&lt;BR /&gt; SchematicInMemoryDiagram sifcc = new SchematicInMemoryDiagram(inMemoryDiagram);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ISchematicInMemoryFeatureClassContainer sifcc1 = new ISchematicInMemoryFeatureClassContainerProxy(&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inMemoryDiagram);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; IEnumSchematicInMemoryFeatureClass enumInMemoryFC = sifcc&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getSchematicInMemoryFeatureClasses();&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; int count = enumInMemoryFC.getCount();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; enumInMemoryFC.reset();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; int count1 = enumInMemoryFC.getCount();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ISchematicInMemoryFeatureClass schInMrmoryFeatureClass = enumInMemoryFC.next();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; schInMrmoryFeatureClass.createSchematicInMemoryFeatureNode(point,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;---------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; the blod font&amp;nbsp; is the different use ,the &lt;/SPAN&gt;&lt;STRONG&gt;count = enumInMemoryFC.getCount();&lt;/STRONG&gt;&lt;SPAN&gt; cont =4,but the schInMrmoryFeatureClass =null, i can not get schInMrmoryFeatureClass , why ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 04:04:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91147#M1071</guid>
      <dc:creator>joshuasun</dc:creator>
      <dc:date>2011-02-16T04:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SchematicInMemoryFeatureClass with java api ?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91148#M1072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;p.s. the code is about schematic 10&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Feb 2011 05:32:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91148#M1072</guid>
      <dc:creator>joshuasun</dc:creator>
      <dc:date>2011-02-16T05:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SchematicInMemoryFeatureClass with java api ?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91149#M1073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not a java expert, so I can't be certain...&amp;nbsp; Anyway, the line you have commented out looks like it should be the better line to use.&amp;nbsp; In C# the code you want would look like this (and works just fine on several samples I have):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ISchematicInMemoryFeatureClassContainer sifcc =(ISchematicInMemoryFeatureClassContainer) inMemoryDiagram;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IEnumSchematicInMemoryFeatureClass enumInMemoryFC = sifcc.getSchematicInMemoryFeatureClasses();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;enumInMemoryFC.reset();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ISchematicInMemoryFeatureClass schInMrmoryFeatureClass = enumInMemoryFC.next();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 14:01:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91149#M1073</guid>
      <dc:creator>RickAnderson</dc:creator>
      <dc:date>2011-02-23T14:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SchematicInMemoryFeatureClass with java api ?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91150#M1074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Not a java expert, so I can't be certain...&amp;nbsp; Anyway, the line you have commented out looks like it should be the better line to use.&amp;nbsp; In C# the code you want would look like this (and works just fine on several samples I have):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ISchematicInMemoryFeatureClassContainer sifcc =(ISchematicInMemoryFeatureClassContainer) inMemoryDiagram;&lt;BR /&gt;&lt;BR /&gt;IEnumSchematicInMemoryFeatureClass enumInMemoryFC = sifcc.getSchematicInMemoryFeatureClasses();&lt;BR /&gt;&lt;BR /&gt;enumInMemoryFC.reset();&lt;BR /&gt;&lt;BR /&gt;ISchematicInMemoryFeatureClass schInMrmoryFeatureClass = enumInMemoryFC.next();&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thx very much. i try another method getSchematicInMemoryFeatureClass(schemElementClass),but it stall not work. the code as follow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISchematicLayer schematicLry = (ISchematicLayer) hookHelper&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.getFocusMap().getLayer(0);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;schematicLry.startEditSchematicDiagram(false);// &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISchematicInMemoryDiagram inMemoryDiagram = schematicLry&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;.getSchematicInMemoryDiagram();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IEnumSchematicElementClass enumElementClass = inMemoryDiagram.getSchematicDiagramClass().getAssociatedSchematicElementClasses();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enumElementClass.getCount();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;enumElementClass.reset();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ISchematicElementClass schemElementClass = enumElementClass.next();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;while(schemElementClass!=null){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;schemElementClass.getName();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ISchematicInMemoryFeatureClassContainer sifcc =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; (ISchematicInMemoryFeatureClassContainer) inMemoryDiagram;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ISchematicInMemoryFeatureClass schematicInMemoryFeatureClass= sifcc.getSchematicInMemoryFeatureClass(schemElementClass);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&amp;nbsp; schematicInMemoryFeatureClass.createSchematicInMemoryFeatureNode(point,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// "");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; schemElementClass = enumElementClass.next();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;this method of get schematicInMemoryFeatureClass has been shown in esri demo of .net, but why it is not work with java code? my God!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 00:30:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91150#M1074</guid>
      <dc:creator>joshuasun</dc:creator>
      <dc:date>2011-02-25T00:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SchematicInMemoryFeatureClass with java api ?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91151#M1075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One of the core developers looked at this and they found a bad declaration for that particular class.&amp;nbsp; So that is probably causing this issue in Java... .NET just manages to handle it.&amp;nbsp; It is too late for us to get it into 10 SP2 though, so if you require this fix asap, you will need to submit through the appropriate channels in order to get a hot fix.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 18:57:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91151#M1075</guid>
      <dc:creator>RickAnderson</dc:creator>
      <dc:date>2011-03-01T18:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SchematicInMemoryFeatureClass with java api ?</title>
      <link>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91152#M1076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thax,i get it .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2011 23:39:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/mapping-questions/how-to-get-schematicinmemoryfeatureclass-with-java/m-p/91152#M1076</guid>
      <dc:creator>joshuasun</dc:creator>
      <dc:date>2011-03-08T23:39:51Z</dc:date>
    </item>
  </channel>
</rss>

