Hi,
Please try the following code:
void set_connect_style()
{
GraphLayer gl = Project.ActiveLayer();
DataPlot dp = gl.DataPlots(0);
Tree tr;
tr = dp.GetFormat(FPB_ALL,FOB_ALL,TRUE,TRUE);
// out_tree(tr); //Output format treenodes
tr.Root.Line.Connect.nVal = 5; //Set connect style
int iRet = dp.UpdateThemeIDs(tr.Root, "Error", "Unknown tag");
bool bRet = dp.ApplyFormat(tr, true, true);
}
Regards!
Sean
OriginLab Tech.