GetSpecialGraphicObjectsCollection
Returns the collection of only those with the given prefix.
BOOL GetSpecialGraphicObjectsCollection( Collection<GraphObject> & coll, LPCSTR lpcszPrefix )
return true for success
EX1
//Output the collection of only those with the "_" prefix. void Layer_GetSpecialGraphicObjectsCollection_ex1(string str = "_") { GraphLayer gly = Project.ActiveLayer(); if( gly.IsValid() ) { Collection<GraphObject> coll; if ( gly.GetSpecialGraphicObjectsCollection(coll, str) ) { GraphObject grobj; foreach(grobj in coll) { string strName; strName = grobj.GetName(); out_str(strName); } } } else out_str( "No graph layer is active" ); }
origin.h