GetFolderIDByObjectType Method

public 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(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");

}

}

}