CreateGraphObject
create a specified type graph object.
GraphObject CreateGraphObject( int nType, LPCSTR lpcszName = NULL, DWORD dwCntrl = 0 )
returns the newly created graph object
EX1
//Create a rectangle object in the active graph. void Layer_CreateGraphObject_ex1() { GraphLayer gl = Project.ActiveLayer(); if(gl) { GraphObject goRect = gl.CreateGraphObject(GROT_RECT, "RectObj"); GraphObject goTest = gl.GraphObjects("RectObj"); if(goTest) out_str("Create success."); gl.GetPage().Refresh(); } }
Layer::GraphObjects Layer::RemoveGraphObject Layer::CreateShapeGraphObjects
origin.h