GetInfoTreeItemID

This method returns the ID that represents the object in the Information Window. When you have the ObjectID of an object, this is more efficient than calling IObjectManager51::GetObject and reading the content of the InfoTreeItemID property.

 

HRESULT GetInfoTreeItemID(

[in] BSTR TerraObjectID,

[out, retval] long* pInfoTreeItemID)

Parameters:

 

Return Values:

The return value obtained from the returned HRESULT can be one of the following:

 

Return value

Meaning

S_OK

Success.

E_FAIL

Catastrophic failure.

TE_E_NOLICENSE

You are running TerraExplorer Viewer and therefore do not have permissions to work with this interface.

TE_E_MPTNOTLOADED

An MPT file must be loaded in TerraExplorer for this method to work.

TE_E_OBJMANAGER_OBJNOTFOUND

The requested object was not found.