public long AddFolder(long parentID, const BmgChar * folderName, ObjectType folderType);
Adds a folder to the view. The value returned will be the folderID for the newly created folder.
void DataView_AddFolder(GeoCalc.DataView & dataView)
{
System.Object.AngularUnitType, false);
try
{
string folderName("Sample Angular Units");
string folderNameUpdated("Updated Sample Angular Units");
ObjectType type = System.Object.AngularUnitType;
long angularUnitFolder = DataView.GetFolderIDByObjectType(type);
long newFolderID = dataView->AddFolder(angularUnitFolder, folderName.c_str(), type);
dataView->SetFolderName(newFolderID, folderNameUpdated.c_str()))
}
catch(GeoCalc.GeoCalcException & ex)
{
AfxMessageBox("AddFolder Failed");
}
}