FlyToObject

The FlyToObject method indicates what object or group the camera focuses on and how it approaches the object. When an ID of a group is passed, the focus point is calculated automatically as the center of the first objects. When an ID of a layer is passed, the focus point is calculated as the center of the layer bounding box.

 

HRESULT FlyToObject(

[in] BSTR ObjectID,

[in] ActionCode Code)

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_MPTNOTLOADED

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

TE_E_OBJMANAGER_OBJNOTFOUND

The requested object was not found.