How do we set Schematic Root to run Hierarchial - Main Line Layout Task using ArcObjects .NET

53
1
Jump to solution
10-16-2019 12:25 AM
Highlighted
Occasional Contributor II

Hi Team,

Could someone please help me in setting Schematic Root while running Hierarchical - Main Line Layout Task on a Schematic Layer using ArcObjects .NET.

Below is the code I am using to run this Layout Task. However, I did not find how and where to set the Schematic Root.

pSchLayer.StartEditSchematicDiagram(true);
ISchematicAlgoMainLineTree pSchAlgoMainLnTree = new SchematicAlgoMainLineTreeClass();

pSchAlgoMainLnTree.Direction = esriSchematicAlgoDirection.esriSchematicAlgoLeftRight;
pSchAlgoMainLnTree.AbsoluteParameters = true;
pSchAlgoMainLnTree.Execute(pSchLayer, null);

pSchLayer.StopEditSchematicDiagram();

Thanks in advance!

With Regards,

Vara Prasad

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Occasional Contributor II

ISchematicInMemoryFeatureNodeFlags interface has to be used to set the Root Node and End Node.

View solution in original post

Reply
0 Kudos
1 Reply
Highlighted
Occasional Contributor II

ISchematicInMemoryFeatureNodeFlags interface has to be used to set the Root Node and End Node.

View solution in original post

Reply
0 Kudos