Command (ICommand80)
The ICommand80 interface gives access to standard TerraExplorer menu commands, providing information about their status and enabling commands to be executed.
|
Methods |
|
|
Checks whether a specific command can be executed. |
|
|
Executes a TerraExplorer command. |
|
|
Gets a specified property value for objects. |
|
|
Gets the checked status of a command. |
CanExecute
Checks whether a specific TerraExplorer command can be executed.
JavaScript |
|
CanExecute( CommandID, parameter) |
C# |
|
bool CanExecute( int CommandID, [object parameter=0]) |
C++ |
|
HRESULT CanExecute( long CommandID, VARIANT parameter, VARIANT_BOOL * bRes ) |
Parameters
CommandID
The ID of the menu command whose status is being checked. See the list of menu commands organized according to TerraExplorer Ribbon tabs.
parameter
The command parameters. See the command parameters in the list of menu commands.
Return Value
bRes
A Boolean that indicates whether or not the command can be executed.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.
Execute
The Execute method activates a TerraExplorer ribbon command.
Note: The list below describes the complete set of menu entries in the TerraExplorer product suite. The menu entries that are functioning in your version are determined by your product level (e.g., TerraExplorer Viewer, TerraExplorer Pro), and your licensed extensions.
See: ICommand80.CanExecute
Opening HTML Tools in Custom Applications
Some of TerraExplorer's tools and commands are executed as HTML tools that are opened in TerraExplorer GUI containers. These containers are not available in custom embedded applications, so when executing one of these tools, it must be opened in a web container (e.g. Floating popup, DIV element, IE control). The path to the HTML should be concatenated to the TerraExplorer ExecutablePath, e.g. “C:\Program Files\Skyline\TerraExplorer Pro\Tools\TOOLNAME\TOOLNAME.html”.
JavaScript |
|
Execute( CommandID, parameters) |
C# |
|
void Execute( int CommandID, [object parameters=0]) |
C++ |
|
HRESULT Execute( long CommandID, VARIANT parameters ) |
Parameters
CommandID
The ID of the menu command to be executed. The commands that can be used from this method are organized in the table below according to Ribbon tabs:
· Home Tab
· View Tab
The CommandID can have one of the values below:
parameters
The command parameters. The available parameters for each command are listed in the table below. N/A in the table below indicates that the parameter value is not required and will be ignored; 0 or "" can be passed in this case.
Name |
CommandID |
parameters |
New |
1002 |
N/A |
Open |
||
§ Project |
1001 |
Type: String A full path name or a URL of a Fly file to be loaded by TerraExplorer. Empty string opens the Open dialog. |
§ Open Project from SkylineGlobe |
2320 |
N/A |
Save |
1003 |
N/A |
Save As |
1004 |
N/A |
Publish |
||
§ Publish Project as Local Kit |
1007 |
N/A |
§ Extract and Publish Area as Offline Kit |
1028 |
N/A |
§ Publish Project as KMZ |
1145 |
N/A |
§ Publish to SGS |
2314 |
N/A |
|
1152 |
N/A |
Resources |
||
§ TerraExplorer Help |
1146 |
N/A |
§ TerraExplorer Programmer’s Guide |
1147 |
N/A |
§ License Manager |
1009 |
N/A |
§ About TerraExplorer |
1010 |
N/A |
Close |
1005 |
N/A |
TerraExplorer Options |
1011 |
N/A |
Name |
CommandID |
Parameter |
Log In |
2309 |
N/A |
Log Out |
2327 |
N/A |
Manage Account |
2322 |
N/A |
My Layers |
2311 |
N/A |
Name |
CommandID |
Parameter |
Undo |
2345 |
N/A |
Redo |
2346 |
N/A |
Name |
CommandID |
Parameter |
Selection |
||
Select |
1021 |
N/A |
§ Select |
1021 |
N/A |
§ Area Selection |
1024 |
N/A |
Paste |
1030 |
N/A |
§ Paste to Cursor Location |
1030 |
N/A |
§ Paste in Original Place |
1029 |
N/A |
§ Paste Special |
2115 |
N/A |
Copy |
1031 |
N/A |
Cut |
1032 |
N/A |
Delete |
1033 |
N/A |
Environment |
||
Time Slider |
1065 |
4 |
Sun |
1026 |
N/A |
Shadow |
2118 |
N/A |
Navigation |
||
Underground Mode |
1027 |
N/A |
Walk Mode |
1149 |
26 *Only valid in TerraExplorer GUI. Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\IndoorNavigation\IndoorNavigation.html. See "Opening HTML Tools in Custom Applications" for further information. |
Add |
||
Feature Layer |
||
§ TerraExplorer Project (*.fly) |
1013 |
2 |
§ Google Earth (*.kml, kmz) |
1013 |
3 |
§ AutoCAD DXF (*.dxf) |
1013 |
4 |
§ Shapefile (*.shp) |
1013 |
5 |
§ SQLite (*.sqlite) |
1013 |
6 |
§ Web Feature Service (WFS) |
1013 |
7 |
§ Skyline Web Feature Service (SFS) |
1013 |
8 |
§ ArcSDE Database |
1013 |
9 |
§ Oracle Spatial Database |
1013 |
10 |
§ Geopackage |
1013 |
12 |
§ GeoJson |
1013 |
13 |
§ SkylineGlobe Server |
1013 |
14 |
§ Load Layer From Data Library |
1149 |
20 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\Data-Library\DataLibrary.html. See "Opening HTML Tools in Custom Applications" for further information. |
§ Create New Feature Layer |
1013 |
11 |
Raster Layer |
||
§ Imagery Layer |
||
· Imagery Layer from File |
1014 |
2 |
· TerraGate Layer |
1014 |
3 |
· Web Map Service (WMS) |
1014 |
4 |
· Web Map Tile Service (WMTS) |
1014 |
4 |
· Oracle Spatial Database |
1014 |
5 |
· ArcSDE Database |
1014 |
6 |
· ECW Image Web Server |
1014 |
7 |
· SkylineGlobe Server |
1014 |
8 |
· Tiff |
1014 |
9 |
· MrSid |
1014 |
10 |
· Google Earth Enterprise (GEE) Server |
1014 |
11 |
§ Elevation Layer |
||
· Elevation Layer from File |
1014 |
19 |
· TerraGate Layer |
1014 |
20 |
· Web Map Service (WMS) |
1014 |
21 |
· Web Map Tile Service (WMTS) |
1014 |
21 |
· Oracle Spatial Database |
1014 |
22 |
· ArcSDE Database |
1014 |
23 |
· ECW Image Web Server |
1014 |
24 |
· SkylineGlobe Server |
1014 |
25 |
· Tiff |
1014 |
26 |
3D Layer |
||
§ 3D Mesh Layer from File |
2110 |
0 |
§ 3D Mesh Layer from SGS |
2110 |
2 |
§ 3D Tile from URL |
2110 |
3 |
§ Point Cloud from File |
1012 |
25 |
§ Point Cloud from SGS |
2315 |
N/A |
§ BIM Layer from File |
1149 |
36 *Only valid in TerraExplorer GUI |
Object |
||
§ Create Text Label |
1012 |
0 |
§ Create Image Label |
1012 |
1 |
§ Play Video on Terrain |
1012 |
2 |
§ Play Video on Billboard |
1012 |
3 |
§ Create Polyline |
1012 |
4 |
§ Create Polygon |
1012 |
5 |
§ Create Rectangle |
1012 |
6 |
§ Create Regular Polygon |
1012 |
7 |
§ Create Arrow |
1012 |
8 |
§ Create Circle |
1012 |
9 |
§ Create Ellipse |
1012 |
10 |
§ Create Arc |
1012 |
11 |
§ Create 3D Model |
1012 |
13 |
§ Create Building |
1012 |
14 |
§ Create Modify Terrain |
1012 |
15 |
§ Create Hole on Terrain |
1012 |
16 |
§ Create 3D Polygon |
1012 |
17 |
§ Create Box |
1012 |
18 |
§ Create Cylinder |
1012 |
20 |
§ Create Sphere |
1012 |
21 |
§ Create Cone |
1012 |
22 |
§ Create Pyramid |
1012 |
23 |
§ Create 3D Arrow |
1012 |
24 |
§ Create Ground Object |
1012 |
26 |
§ Create Aerial Object |
1012 |
27 |
Presentation |
1015 |
N/A |
Location |
1016 |
N/A |
Project Tree |
||
§ Create Tree Message |
1017 |
N/A |
§ Create Group |
1018 |
N/A |
§ Capture Tree State |
1019 |
N/A |
Project |
||
Project Settings |
1020 |
N/A |
Publish to SG |
2314 |
N/A |
Publish Offline |
|
|
§ Publish Project as Local Kit |
1007 |
N/A |
§ Extract and Publish Area as Offline Kit |
1028 |
N/A |
§ Publish Project as KMZ |
1145 |
N/A |
§ Upload Existing Kit to Mobile Device |
2124 |
N/A |
Name |
CommandID |
Parameter |
Measurement |
||
Query |
1023 |
N/A |
Distance |
2356 |
Pass "pm=1" to display simplified tool for embedded use. |
Area |
2359 |
Pass "pm=1" to display simplified tool for embedded use. |
Terrain Analysis |
||
Contour Map |
||
§ Global Contour Map |
2216 |
N/A |
§ Custom Contour Map Object |
||
· Contour Colors |
1038 |
N/A |
· Contour Lines |
1039 |
N/A |
· Contour Colors and Lines |
1040 |
N/A |
§ Contour Palettes |
1041 |
N/A |
Slope Map |
||
§ Global Slope Map |
2217 |
N/A |
§ Slope Map Query |
1149 |
23 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\SlopeMapQuery\SlopeMapQuery.html. See "Opening HTML Tools in Custom Applications" for further information. |
§ Slope Map Cursor |
1149 |
24 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\SlopeCursor\SlopeCursor.html. See "Opening HTML Tools in Custom Applications" for further information. |
§ Custom Slope Map Object |
||
· Slope Color Map |
1092 |
N/A |
· Slope Directions |
1093 |
N/A |
· Slope Color Map with Directions |
1094 |
N/A |
Slope Palettes |
1098 |
N/A |
Best Path |
1042 |
N/A |
Terrain Profile
|
1149 |
28 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\TerrainProfile\TerrainProfile.html. See "Opening HTML Tools in Custom Applications" for further information. |
Flood |
1044 |
N/A |
Volume |
1149 |
40 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\Volume\Volume.html. See "Opening HTML Tools in Custom Applications" for further information. |
Cross Section |
1149 |
39 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\CrossSection\CrossSection.html. See "Opening HTML Tools in Custom Applications" for further information. |
Clip Box |
1149 |
54 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\ClipBox\ClipBox.html. See "Opening HTML Tools in Custom Applications" for further information. |
Line of Sight |
||
Line of Sight |
1046 |
N/A |
Viewshed |
||
§ 3D Viewshed |
2117 |
N/A |
§ 3D Viewshed Query |
1149 |
29 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\ViewshedQuery\ViewshedQuery.html. See "Opening HTML Tools in Custom Applications" for further information. |
§ 2D Viewshed |
1047 |
0 |
Viewshed on Route |
||
§ 3D Viewshed on Route – By Speed |
1149 |
30 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\3DViewshedonRoute\Dynamic3DViewshed.html?Type=1. See "Opening HTML Tools in Custom Applications" for further information. |
§ 3D Viewshed on Route – By Time |
1149 |
31 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\3DViewshedonRoute\Dynamic3DViewshed.html?Type=2. See "Opening HTML Tools in Custom Applications" for further information.
|
§ 3D Viewshed on Route - Query |
1149 |
32 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\3DViewshedonRoute\Dynamic3DViewshed.html?Type=3. See "Opening HTML Tools in Custom Applications" for further information. |
§ 2D Viewshed on Route |
2002 |
N/A |
Threat Dome |
1149 |
33 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\ThreatDome\ThreatDome.html. See "Opening HTML Tools in Custom Applications" for further information. |
Buffer Query |
1149 |
43 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\BufferQuery\BufferQuery.html. See "Opening HTML Tools in Custom Applications" for further information. |
Shadow |
||
Shadow |
2118 |
N/A |
Selection Shadow |
2119 |
N/A |
§ Show Selection Shadow |
2119 |
N/A |
§ Update Selection |
2123 |
N/A |
Shadow Query |
1149 |
27 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\ShadowQuery\ShadowQuery.html. See "Opening HTML Tools in Custom Applications" for further information. |
Swipe |
||
Swipe Layers |
1149 |
34 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\ImageComparison\ImageComparison.html. See "Opening HTML Tools in Custom Applications" for further information. |
Swipe Snapshots |
1149 |
35 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\ImageComparison\SnapshotComparison.html. See "Opening HTML Tools in Custom Applications" for further information. |
Elevation Difference – 3D Mesh Layers |
1149 |
44 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\ElevationComparison\ElevationComparison.html?Type=0. See "Opening HTML Tools in Custom Applications" for further information. |
Elevation Difference – Elevation Layers |
1149 |
45 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\ElevationComparison\ElevationComparison.html?Type=1. See "Opening HTML Tools in Custom Applications" for further information. |
Name |
CommandID |
Parameter |
Feature Layer |
||
Load Layer |
1013 |
20 |
Data Library |
1149 |
20 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\Data-Library\DataLibrary.html. See "Opening HTML Tools in Custom Applications" for further information. |
SGS Base Layers |
N/A |
N/A Note: This is a dynamic menu coming from the server. |
New Layer |
1013 |
11 |
Complex Layer |
||
FLY |
1013 |
2 |
KML |
1013 |
3 |
DXF |
1013 |
4 |
Shapefile |
1013 |
5 |
Sqlite |
1013 |
6 |
GeoPackage |
1013 |
12 |
SGS |
1013 |
14 |
WFS |
1013 |
7 |
SFS |
1013 |
8 |
Esri ArcSDE |
1013 |
9 |
Oracle Spatial |
1013 |
10 |
GeoJson |
1013 |
13 |
3D Mesh |
||
Load 3D Mesh from File |
2110 |
0 |
Load 3D Mesh from SGS |
2110 |
2 |
Load 3D Mesh from TerraGate/SFS |
2110 |
1 |
Load 3D Tiles from URL (B3DM) |
2110 |
3 |
Import OSGB |
2342 |
N/A |
Import B3DM |
2343 |
N/A |
Models to 3DML |
1149 |
18 *Only valid in TerraExplorer GUI |
Models to XPL |
1149 |
11 *Only valid in TerraExplorer GUI |
BIM |
1149 |
36 *Only valid in TerraExplorer GUI |
Point Cloud |
||
§ Point Cloud |
1012 |
25 |
§ Point Cloud from Server |
2315 |
N/A |
§ Convert Point Cloud to CPT |
1149 |
10 *Only valid in TerraExplorer GUI |
Raster Layer |
||
Imagery Layer |
1014 |
Can be one of the following values: § 2 - Imagery Layer from File § 3 - TerraGate Layer § 4 - Web Map Service (WMS) § 4 - Web Map Tile Service (WMTS) § 5 - Oracle Spatial Database § 6 - ArcSDE Database § 7 - ECW Image Web Server § 8 - SkylineGlobe Server § 9 - Tiff § 10 – MrSid § 11 – Google Earth Enterprise Server |
Elevation Layer |
1014 |
Can be one of the following values: § 19 - Elevation Layer from File § 20 - TerraGate Layer § 21 - Web Map Service (WMS) § 21 - Web Map Tile Service (WMTS) § 22 - Oracle Spatial Database § 23 - ArcSDE Database § 24 - ECW Image Web Server § 25 – SkylineGlobe Server § 26 – TIFF Layer |
SGS Base Layers |
N/A |
N/A |
Create Resolution Pyramids |
1149 |
12 *Only valid in TerraExplorer GUI |
Name |
CommandID |
Parameter |
|
Edit |
|||
Drawing Surface |
|
|
|
§ Create Drawing Surface – Auto Aligned |
2349 |
N/A |
|
§ Create Drawing Surface – Horizontal |
2350 |
N/A |
|
§ Create Drawing Surface – Vertical |
2351 |
N/A |
|
§ Create Drawing Surface – By 3 Points |
2352 |
N/A |
|
§ Toggle Drawing Surface On/Off |
2353 |
N/A |
|
§ Edit Drawing Surface |
2348 |
N/A |
|
§ Show Last Surface |
2347 |
N/A |
|
Label |
|||
Text |
1012 |
0 |
|
Image |
1012 |
1 |
|
Video |
|||
Video on Terrain |
1012 |
2 |
|
Video on Billboard |
1012 |
3 |
|
2D Objects |
|||
Polyline |
|||
§ Polyline |
1012 |
4 |
|
§ Freehand Drawing |
1149 |
25 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\FreeHand\Freehand.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Polygon |
1012 |
5 |
|
2D Shape |
|||
§ Create Rectangle |
1012 |
6 |
|
§ Create Regular Polygon |
1012 |
7 |
|
§ Create Arrow |
1012 |
8 |
|
§ Create Circle |
1012 |
9 |
|
§ Create Ellipse |
1012 |
10 |
|
§ Create Arc |
1012 |
11 |
|
3D Objects |
|||
3D Model |
1012 |
13 |
|
3D Shape |
|||
§ Create 3D Polygon |
1012 |
17 |
|
§ Create Box |
1012 |
18 |
|
§ Create Cylinder |
1012 |
20 |
|
§ Create Sphere |
1012 |
21 |
|
§ Create Cone |
1012 |
22 |
|
§ Create Pyramid |
1012 |
23 |
|
§ Create 3D Arrow |
1012 |
24 |
|
Building |
1012 |
14 |
|
Terrain Objects |
|||
Modify Terrain |
1012 |
15 |
|
Hole on Terrain |
1012 |
16 |
|
Dynamic Objects |
|||
Ground Object |
1012 |
26 |
|
Aerial Object |
1012 |
27 |
|
Move By Time |
1012 |
47 |
|
Libraries |
|||
Data Library |
1149 |
13 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\Data-Library\DataLibrary.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Sketchup Warehouse |
1149 |
15 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\Data-Library\3DWarehouse.html . See "Opening HTML Tools in Custom Applications" for further information. |
|
Name |
CommandID |
Parameter |
Weather |
||
Sky Color |
N/A |
N/A |
Wind Direction |
2203 |
Type: Double In degrees |
Wind Speed |
2202 |
Type: Double In m/s |
Sky Texture |
2209 |
Can be one of the following values: § null – Toggle § 0 – Off § 1 – On |
§ Light |
2210 |
Can be one of the following values: § null – Toggle § 0 – Off § 1 – On |
§ Heavy |
2211 |
Can be one of the following values: § null – Toggle § 0 – Off § 1 – On |
§ Custom |
2212 |
Can be one of the following values: § null – Toggle § 0 – Off § 1 – On |
Dynamic Clouds |
1154 |
Can be one of the following values: § null – Toggle § 0 – Off § 1 – On |
§ Default Map |
2213 |
Can be one of the following values: § null – Toggle § 0 – Off § 1 – On |
§ Full Coverage |
2214 |
Can be one of the following values: § null – Toggle § 0 – Off § 1 – On |
§ Custom |
2215 |
Can be one of the following values: § null – Toggle § 0 – Off § 1 – On |
Fog Effect checkbox |
2208 |
Can be one of the following values: § null – Toggle § 1 = Checked § 0 = Cleared |
Fog Effect Intensity |
2204 |
Type: Int Range: 0..100 |
Rain Effect checkbox |
2206 |
Can be one of the following values: § 1 = Checked § 0 = Cleared |
Rain Effect Intensity |
2200 |
Type: Int Range: 20..100 |
Snow Effect checkbox |
2207 |
Can be one of the following values: § 1 = Checked § 0 = Cleared |
Snow Effect Intensity |
2201 |
Type: Int Range: 20..100 |
Animation |
||
Smoke |
1012 |
§ 48 – Chimney smoke white § 49 – Chimney smoke gray § 50 – Chimney smoke black § 51 – Chimney smoke thin § 52 – Chimney smoke vertical gray § 53 – Chimney smoke vertical black § 54 – Fire smoke white § 55 – Fire smoke gray § 56 – Fire smoke black |
Fire |
1012 |
§ 57 – Fire bonfire § 58 – Fire building § 59 – Fire chemical § 60 – Fire dying out § 61 – Fire with explosions § 62 – Fire forest § 63 – Fire oil rig § 64 – Fire smokey |
Explosion |
1012 |
§ 65 – Explosion fire smoke § 66 – Ground explosion with fire § 67 – Ground explosion |
Fire Works |
1012 |
§ 80 – Fireworks pearls § 81 – Fireworks pistil one color § 82 – Fireworks pistil two colors § 83 – Fireworks ring shell |
Custom Animation |
1012 |
101 |
Water |
||
Water Animation |
1012 |
§ 90 – Fountain waterfall § 91 – Fountain classic § 92 – Pipe burst |
Water Body |
N/A |
N/A |
§ Lake |
N/A |
N/A |
§ Sea |
N/A |
N/A |
§ River |
N/A |
N/A |
§ Reservoir |
N/A |
N/A |
§ Pool |
N/A |
N/A |
§ Muddy River |
N/A |
N/A |
Oceans |
1155 |
N/A |
Light |
2150 |
N/A |
Name |
CommandID |
Parameter |
3D Mode |
||
3D |
1052 |
N/A |
2D |
1053 |
N/A |
2D North |
1054 |
N/A |
Navigate to |
||
Zoom |
||
§ Globe Level |
1055 |
5 |
§ Country Level |
1055 |
4 |
§ State Level |
1055 |
3 |
§ City Level |
1055 |
2 |
§ Street Level |
1055 |
1 |
§ House Level |
1055 |
0 |
North |
1056 |
N/A |
Rotate |
1057 |
0 |
Follow |
||
§ Circle Pattern |
1057 |
0 |
§ Oval Pattern |
1057 |
1 |
§ Arc Pattern |
1057 |
2 |
§ Line Pattern |
1057 |
3 |
§ Behind Object |
1057 |
4 |
§ Above Object |
1057 |
5 |
§ From Below |
1057 |
6 |
§ From Right |
1057 |
7 |
§ From Left |
1057 |
8 |
§ From Behind and Above |
1057 |
9 |
§ Cockpit View |
1057 |
10 |
§ From Ground Location |
1057 |
11 |
Navigation Modes |
|
|
Collision Detection |
1140 |
N/A |
Slide Mode |
1050 |
N/A |
Map |
||
Navigation Map Settings |
1058 |
0 |
Display Navigation Map |
N/A |
N/A |
Navigation Aid |
||
GPS Tracking |
1149 |
1 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\GPSTracking\GPSTracking.html. See "Opening HTML Tools in Custom Applications" for further information. |
GPX Reader |
1149 |
56 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\GPXReader\GPXREader.html. See "Opening HTML Tools in Custom Applications" for further information. |
Target |
1149 |
2 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\NavigationTools\NavigationTools.html. See "Opening HTML Tools in Custom Applications" for further information. |
Multiple Coordinate System |
1149 |
3 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\CoordSystemTool\CoordSystem.html. See "Opening HTML Tools in Custom Applications" for further information. |
Display Look Around Controls |
1149 |
37 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\LookAround\LookAround.html. See "Opening HTML Tools in Custom Applications" for further information. |
Point to Address |
1149 |
22 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\AddressSearch\ReverseSearch.html. See "Opening HTML Tools in Custom Applications" for further information. |
Name |
CommandID |
Parameter |
Layout |
||
Normal |
N/A |
N/A |
Maximize |
N/A |
N/A |
Full Screen |
N/A |
N/A |
Stereo |
2313 |
0 |
Oculus VR |
2324 |
Type: Long Can be one of the following values: § -1 – Toggle § 0 – Off § 1 – On |
Axiom Holographic Table |
N/A |
N/A |
Terrain Imagery |
||
Hide Terrain |
1059
|
Type: Long Can be one of the following values: § Null – Toggle § 0 – Show § 1 – Hide |
Terrain Opacity |
1060 |
Can be any Long value from 0 to 100 |
Show/Hide |
||
Project Tree |
1162 |
Can be one of the following values: § 1 = Show § 0 = Hide |
Navigation Map |
1161 |
Can be one of the following values: § 1 = Show § 0 = Hide |
Units |
||
L/L Coordinates |
1061
|
Type: Long Can be any of the following values: § 0 – Decimal units § 1 – Deg, min, sec units § 2 – Deg, decimal minutes |
Speed |
1062
|
Type: Long Can be one of the following values: § 0 - KMH § 1 - MPH § 2 - Knots |
Altitude Units
|
1063
|
Type: Long Can be either of the following values: § 0 – Meters § 1 – Feet |
Altitude Type |
1064
|
Type: Long Can be either of the following values: § 0 – AGL Units § 1 – Absolute Units |
Screen Overlay |
||
Navigation Controls |
1065 |
0 |
Center Sign |
1065 |
1 |
Status Bar |
1065 |
2 |
Scale Bar |
1065 |
3 |
Time Slider |
1065 |
4 |
Field of View |
||
FOV |
1066 |
Type: Double Can be one of the following values: 90.0; 70.0; 53.0; 45.0; 35.0; 25.0; 15.0 |
Name |
CommandID |
Parameter |
|
Snapshot |
|||
Snapshot |
|||
§ Snapshot to New Window |
1067 |
N/A |
|
§ Snapshot to File |
1068 |
N/A |
|
Extract Terrain |
|||
Extract to MPT |
1141 |
N/A |
|
Extract to VRML |
|||
§ Extract to VRML |
1142 |
N/A |
|
§ Extract to Zebra |
1164 |
N/A |
|
Collaboration |
|||
Collaboration |
1149 |
4 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\Collaboration\Collaboration.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Draw Tool |
|||
Urban Design |
1149 |
38 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\UrbanDesign\UrbanDesign.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Duplicate Objects
|
1149 |
6 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\DuplicateObjects\DuplicateObjects.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Power Lines |
1149 |
7 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\CreatePowerLine\CreatePowerLine.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Pipe Lines |
1149 |
8 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\CreatePipeLine\CreatePipeLine.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Fence and Wall |
1149 |
17 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\FenceAndWall\FenceAndWall.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Time |
|||
Timespan Tags |
1149 |
9 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\TimeStamp\TimeStamp.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Calculate |
|||
Block Width |
1149 |
16 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\BlockWidth\BlockWidth.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
PhotoMesh |
|||
Manual Retouch |
1149 |
53 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\ManualRetouch\ManualRetouch.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Photo Inspector |
1149 |
52 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\PhotoInspector\PhotoInspector.html. See "Opening HTML Tools in Custom Applications" for further information. |
|
Make TEZ |
N/A |
Note: When executing this tool in a custom embedded application, the path to the tool’s executable is .\Tools\TEZCreator\DotNetPlugin\TEZCreator.exe. |
|
Note: For all feature layer commands, the feature layer must first be selected in the Project Tree before calling the Execute method.
Name |
CommandID |
Parameter |
Edit |
||
Layer Properties |
1158 |
N/A |
Paste |
2115 |
N/A |
Paste to Cursor Location |
1030 |
N/A |
Paste in Original Place |
1029 |
N/A |
Paste Special |
2115 |
N/A |
Copy |
1031 |
N/A |
Cut |
1032 |
N/A |
Delete |
1033 |
N/A |
Selection |
||
Select Feature |
1070 |
N/A |
Spatial Query |
||
§ Area Selection |
1071 |
N/A |
§ Line Selection |
1072 |
N/A |
§ Point Selection |
1080 |
N/A |
§ Object Selection |
1156 |
N/A |
§ From Clipboard |
2113 |
N/A |
Buffer |
1096 |
Type: Double Value – Always in meters |
Units |
N/A |
N/A Always pass meters to Buffer (1096) |
Type |
1097 |
Type: Long Selection type can be one of the following values: § 1 – Intersect § 2 – Completely within |
Edit |
||
Add Point/Polyline/Polygon |
1077 |
Type: String Item ID of the layer. |
Editing |
||
§ Merge |
1078 |
N/A |
§ Clip |
1080 |
N/A |
§ Intersect |
1082 |
N/A |
§ Move |
2100 |
N/A |
§ Explode |
1084 |
N/A |
§ Explode All |
1085 |
N/A |
§ Attributes |
1080 |
N/A |
§ Delete |
1075 |
N/A |
Attributes |
||
Attribute Table |
1086 |
N/A |
Search (field) |
993 |
Type: String Field Name (specify/”All Fields”); search string E.g. “All Fields;New York”, “CITY;New York”. Note: To run the search call the search button (1127,0). |
In (search) |
N/A |
Field names are passed with “Search (field) – 993” |
Search (button) |
1127 |
N/A |
Load and Save |
||
Refresh Layer |
1087 |
N/A |
Save Layer |
||
§ Save |
1088 |
N/A |
§ Save As |
1089 |
N/A |
§ Save Selected Features as |
1076 |
N/A |
§ Convert to Group |
1090 |
N/A |
Name |
CommandID |
Parameter |
General |
||
3DML Properties |
1022 |
N/A |
Display Style |
2325 |
Can be one of the following values: § 0 – Texture § 2 – X-ray § 3 – Solid Any of the styles above can be combined with the wireframe style. § 32768 – Wireframe |
Modify Mesh Layer |
N/A |
|
Mesh Layer |
||
Refresh |
2111 |
N/A |
Export to Mesh |
1149 |
50 *Only valid in TerraExplorer GUI |
Export to Models |
|
|
§ Export by All Classification Features |
1149 |
46 *Only valid in TerraExplorer GUI |
§ Export by Selected Features |
1149 |
47 *Only valid in TerraExplorer GUI |
§ Export by External Feature Layers |
1149 |
48 *Only valid in TerraExplorer GUI |
§ Draw and Export Single Model |
1149 |
49 *Only valid in TerraExplorer GUI |
Volume Classification |
||
Create Layer |
1149 |
55 *Only valid in TerraExplorer GUI Note: When executing this tool in a custom embedded application, the path to the tool’s HTML is .\Tools\CreateClassificationLayer\CreateClassificationLayer.html. See "Opening HTML Tools in Custom Applications" for further information. |
Classification Layer |
||
Layer Properties |
1158 |
N/A |
Save Layer |
||
§ Save |
1088 |
N/A |
§ Save as |
1089 |
N/A |
§ Save Selected Features as |
1076 |
N/A |
§ Convert to Group |
1090 |
N/A |
Selection |
||
Select Feature |
1070 |
N/A |
Spatial Query |
||
§ Area Selection |
1071 |
N/A |
§ Line Selection |
1072 |
N/A |
§ Point Selection |
1080 |
N/A |
§ Object Selection |
1156 |
N/A |
§ From Clipboard |
2113 |
N/A |
Buffer |
1096 |
Type: Double Value – Always in meters |
Units |
N/A |
N/A Always pass meters to Buffer (1096) |
Type |
1097 |
Type: Long Selection type can be one of the following values: § 1 – Intersect § 2 – Completely within |
Attributes |
||
Attribute Table |
1086 |
N/A |
Search (field) |
993 |
Type: String Field Name (specify/”All Fields”); search string E.g. “All Fields;New York”, “CITY;New York”. Note: To run the search call the search button (1127,0). |
In (search) |
N/A |
Field names are passed with “Search (field) – 993” |
Search (button) |
1127 |
N/A |
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.
GetValue
This method returns the value that was set for a specified menu command.
JavaScript |
|
GetValue( CommandID) |
C# |
|
dynamic GetValue( int CommandID) |
C++ |
|
HRESULT GetValue( long CommandID, VARIANT * pVal ) |
Parameters
CommandID
The ID of the menu command whose value is being returned. Ribbon commands that are not available in the list below cannot be used from this method. The commands are organized according to Ribbon tabs. The command can have one of the following values:
View Tab
Name |
CommandID |
Returning Value |
Terrain Imagery |
||
Terrain Opacity |
1060 |
Can be any long value from 0 to 100 |
L/L Coordinates |
1061
|
Type: Long Can be either of the following values: § 0 – Decimal units § 1 – Deg, min, sec units § 1 – Deg, decimal min units |
Speed |
1062
|
Type: Long Can be one of the following values: § 0 - KMH § 1 - MPH § 2 - Knots |
Altitude |
1063
|
Type: Long Can be either of the following values: § 0 – Meters § 1 – Feet |
Altitude Type |
1064
|
Type: Long Can be either of the following values: § 0 – AGL Units § 1 – Absolute Units |
Field of View |
||
FOV |
1071 |
Type: Double Can be one of the following values: 90.0; 71.0; 53.0; 45.0; 35.0; 25.0; 15.0 |
Layer Edit Tab
Name |
CommandID |
Parameter |
Layer |
||
Layer list box |
1069 |
An array of Unsigned Long that represents the layer IDs |
Presentation Tab
Name |
CommandID |
Parameter |
Play |
||
Play Algorithm |
1120 |
Type: Long Can be one of the following values: § 0 – FlyTo § 1 - Spline |
Play Mode |
1121 |
Type: Long Can be one of the following values: § 0 – AutoPlay § 1 - Standard |
Play Speed |
1122 |
Type: Long Can be one of the following values: § 0 – Very slow § 1 - Slow § 2 – Normal § 3 – Fast § 4- Very fast |
Movie |
||
Frames |
1117 |
Type: Long Number of frames |
Frame Size |
1118
|
Type: Long Can be one of the following values: § 0 – Current size § 1 – 320X200 § 2 – 320X240 § 3 – 384X288 § 4 – 640X480 § 5 – 768X576 § 6 – 720X480 § 7 – 1280X720 § 8 - 1920X1080 |
Caption Settings |
||
Size |
1135 |
Type: Long Can be one of the following values: § 0 – Fixed size § 1 – Automatically adjust size |
Width |
1136 |
Type: Long Caption box width |
Height |
1137 |
Type: Long Caption box height |
Caption Position |
1125 |
Type: Long Can be one of the following values: § 0 – Up left § 1 – Up center § 2 – Up right § 3 – Down left § 4 – Down center § 5 – Down right |
Return Value
pVal
The value that was set for a specified menu command.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.
IsChecked
This method determines the checked status of a menu command. IsChecked returns TRUE when the specified command item is selected or toggled on.
JavaScript |
|
IsChecked( CommandID, parameters) |
C# |
|
bool IsChecked( int CommandID, [object parameters=0]) |
C++ |
|
HRESULT IsChecked( long CommandID, VARIANT parameters, VARIANT_BOOL * bRes ) |
Parameters
CommandID
The ID of the menu command whose checked status is to be returned. IsChecked applies to the commands in the list of menu commands that are toggled on/off.
parameter
The command parameters. See the command parameters in the list of menu commands.
Return Value
bRes
A Boolean that indicates whether the command is selected.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.