Home > Working with SGWorld > Navigate (INavigate6) > FlyTo

FlyTo

This method instructs the plane to fly to an object, approaching and focusing in on the object according to the value set in the Pattern parameter.

 

JavaScript

 

FlyTo(

      target,

      Pattern )

 

C#

 

void FlyTo(

      object target,

      ActionCode Pattern = ActionCode.AC_FLYTO)

 

C++

 

HRESULT FlyTo(

      VARIANT target,

      ActionCode Pattern) 

Parameters

target

Can be any of the following:

·         An object ID represented as a string.

·         ITerraExplorerObject6 derived object

·         ProjectTree ItemID

·         IPosition6 object

Pattern

A string that instructs the plane on how to approach and focus in on the object. The following are possible values:

§  AC_FLYTO = 0,

§  AC_CIRCLEPATTERN = 1,

§  AC_OVALPATTERN = 2,

§  AC_LINEPATTERN = 3,

§  AC_ARCPATTERN = 4,

§  AC_FOLLOWBEHIND = 5,

§  AC_FOLLOWABOVE = 6,

§  AC_FOLLOWBELOW = 7,

§  AC_FOLLOWRIGHT = 8,

§  AC_FOLLOWLEFT = 9,

§  AC_FOLLOWBEHINDANDABOVE = 10,

§  AC_FOLLOWCOCKPIT = 11,

§  AC_FOLLOWFROMGROUND = 12,

§  AC_STOP = 13,

§  AC_JUMP = 14,

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.