Hi,
I'm trying to set schematic root of a schematic diagram after generating it through ISchematicBuilder.GenerateDiagram method.
ISchematicDiagram GeneratedDiagram = schBuilder.GenerateDiagram(DiagramName, schemDiagramContainer, propertySet1, (ISchematicBuilderContext)schBuilderCtxt, null);
IPropertySet propertySet = GeneratedDiagram.PropertySet;
propertySet.SetProperty("FLAG_ROOT", "16-4-0"); // Some hard-coded value of the schematic root
GeneratedDiagram.AlterPropertySet(propertySet);
GeneratedDiagram.Store();
After performing the above, i can see that the diagram has stored the properties but i cannot see the difference in the layout of the diagram. Do i need to re-execute the layout algorithm and if so how can i do that through my code.
By the way, i tried to re-execute the layout algorithm through ArcMap after generating the diagram and setting the schematic root but it made no difference to its layout.
Any help will be appreciated.
Thanks
Arish