GetFolderIDByObjectType Method

WRAPPER_API static long GetFolderIDByObjectType(const ObjectType type)

 

Description

A static function to retrieve the folder id for the appropriate default folders (which are organized by object type).

 

Example

void DataView_GetFolderIDByObjectType(GEOCALCPBW_NAMESPACE::DataView & dataView)

{

if (dataView.get_IsLoaded())

{

_towchar gcCode("DEGREES");

ObjectType type = GEOCALCPBW_NAMESPACE::GeoBase::AngularUnitType;

long folderID = DataView::GetFolderIDByObjectType(type);

if (!dataView.AddObject(gcCode.c_str(), type, folderID))

{

AfxMessageBox("AddObject failed");

}

}

}