public static long GetFolderIDByObjectType(const ObjectType type)
A static function to retrieve the folder id for the appropriate default folders (which are organized by object type).
void DataView_GetFolderIDByObjectType(GeoCalc.DataView & dataView)
{
if (dataView.get_IsLoaded())
{
string gcCode("DEGREES");
ObjectType type = System.Object.AngularUnitType;
long folderID = DataView.GetFolderIDByObjectType(type);
if (!dataView.AddObject(gcCode.c_str(), type, folderID))
{
AfxMessageBox("AddObject failed");
}
}
}