Add new layer on the page, if page not exist, create new page.
string add_new_layer( Folder & fld, string & strPageName, int nLayerType = EXIST_WKS )
return layer name if success.
EX1
void add_new_layer_ex1() { Folder newFolder = add_new_folder(); string strPageName = "newLayerTest"; string strNewLayer = add_new_layer(newFolder,strPageName);//page is not exist printf("%s",strNewLayer); strNewLayer = add_new_layer(newFolder,strPageName);//page is exist printf("%s",strNewLayer); }
origin.h