Add Worksheet as a GraphObject to Graph.
GraphObject InsertWks( Worksheet & wks, LPCSTR lpcszName = NULL, DWORD dwCntrl = 0 )
GraphObject inserted from the Worksheet
EX1
void Layer_InsertWks_ex1() { // Create a layer object and attach it to currently active layer Layer ly = Project.ActiveLayer(); if( !ly.IsValid() ) return; Worksheet wks; wks.Create("Origin"); GraphObject go = ly.InsertWks(wks, "name", 0); if( go.IsValid() ) { out_str( "GraphObject is valid" ); } else { out_str( "GraphObject is not valid" ); } }
Layer::InsertGraph
origin.h