Select to view content in your preferred language

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

431
1
Jump to solution
10-16-2019 12:25 AM
Vara_PrasadM_S
Frequent Contributor

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

0 Kudos
1 Solution

Accepted Solutions
Vara_PrasadM_S
Frequent Contributor

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

View solution in original post

0 Kudos
1 Reply
Vara_PrasadM_S
Frequent Contributor

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

0 Kudos