LoadFlyLayerEx

Loads a Fly or KML file into the current project. All the objects from the FLY file, including locations, routes and hyperlinks, are added. See: “Feature Layers” chapter in the User Manual for additional information about supported KML elements. The method returnes the Info Tree item ID of the new group that includes the FLY contents.

 

HRESULT LoadFlyLayerEx(

[in] BSTR FlyFile,

[in, optional, defaultvalue(0)] long ParentGroupID,

[out, retval] long* pItemID)

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_NOLICENSE

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