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
do it with java api.the code as show :
ISchematicLayer schematicLry = (ISchematicLayer) hookHelper
.getFocusMap().getLayer(0);
schematicLry.startEditSchematicDiagram(false); ISchematicInMemoryDiagram inMemoryDiagram = schematicLry
.getSchematicInMemoryDiagram();
// ISchematicInMemoryFeatureClassContainer sifcc =(ISchematicInMemoryFeatureClassContainer) inMemoryDiagram;
SchematicInMemoryDiagram sifcc = new SchematicInMemoryDiagram(inMemoryDiagram);
ISchematicInMemoryFeatureClassContainer sifcc1 = new ISchematicInMemoryFeatureClassContainerProxy(
inMemoryDiagram);
IEnumSchematicInMemoryFeatureClass enumInMemoryFC = sifcc
.getSchematicInMemoryFeatureClasses(); int count = enumInMemoryFC.getCount();
enumInMemoryFC.reset();
int count1 = enumInMemoryFC.getCount();
ISchematicInMemoryFeatureClass schInMrmoryFeatureClass = enumInMemoryFC.next();
schInMrmoryFeatureClass.createSchematicInMemoryFeatureNode(point,
"");
---------------------
the blod font is the different use ,the count = enumInMemoryFC.getCount(); cont =4,but the schInMrmoryFeatureClass =null, i can not get schInMrmoryFeatureClass , why ?