Description
Opt whether to set altitude automatically by
using terrain data.
Property type
Read-write property
Syntax
[Visual Basic .NET] |
Public Property UseTerrain() As Boolean
|
[C#] |
public bool UseTerrain {get; set;}
|
[Managed C++] |
public: __property bool get_UseTerrain();
public: __property void set_UseTerrain(
bool
);
|
[Unmanaged C++] |
public: HRESULT get_UseTerrain(
VARIANT_BOOL * pRetVal
);
public: HRESULT put_UseTerrain(
VARIANT_BOOL NewUseTerrain
);
|
[Java] |
public bool getUseTerrain();public void setUseTerrain(
bool
);
|
Example
Move a facility while
use terrain option is set true
[C#] |
Copy Code
|
fac.UseTerrain = true;
fac.Position.AssignGeodetic(29.98, -90.25, 9);
fac.Position.AssignGeocentric(32.12, -110.93, 787);
fac.Position.AssignSpherical(40.65, -73.78, 7);
|
|
Move a facility while
use terrain option is set true
[Visual Basic .NET] |
Copy Code
|
fac.UseTerrain = True
fac.Position.AssignGeodetic(29.98, -90.25, 9)
fac.Position.AssignGeocentric(32.12, -110.93, 787)
fac.Position.AssignSpherical(40.65, -73.78, 7)
|
|
See Also