Home > Working with SGWorld > Command (ICommand6) > 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 ICommand6. CanExecute
JavaScript |
|
Execute(CommandID, parameters) |
C# |
|
void Execute( int CommandID, object parameters) |
C++ |
|
HRESULT Execute( long CommandID, VARIANT parameters ) |
Parameters
The ID of the menu command to be executed. 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:
Home Tab
Name |
Code |
Parameter |
Selection |
||
Select |
1021 |
0 |
Properties |
1022 |
0 |
Query Information |
1023 |
0 |
Select Area |
1024 |
0 |
View |
||
Time Slider |
1065 |
4 |
Sun |
1026 |
0 |
Underground |
||
Underground mode |
1027 |
0 |
Add |
||
Feature Layer |
||
§ TerraExplorer Project (*.fly) |
1013 |
2 |
§ Google Earth (*.kml, kmz) |
1013 |
3 |
§ Autodesk DXF (*.dxf) |
1013 |
4 |
§ Shape file (*.shp) |
1013 |
5 |
§ Geo Database (*.mdb) |
1013 |
6 |
§ Web Feature Service (WFS) |
1013 |
7 |
§ Skyline Web Feature Service (SFS) |
1013 |
8 |
§ ArcSDE Database |
1013 |
9 |
§ Oracle Spatial Database |
1013 |
10 |
§ Other… |
1013 |
|
§ Load Layer From Data Library |
1013 |
|
§ 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 |
· Oracle Spatial Database |
1014 |
5 |
· ArcSDE Database |
1014 |
6 |
· ECW Image Web Server |
1014 |
7 |
§ Elevation Layer |
||
· Elevation Layer from File |
1014 |
19 |
· TerraGate Layer |
1014 |
20 |
· Web Map Service (WMS) |
1014 |
21 |
· Oracle Spatial Database |
1014 |
22 |
· ArcSDE Database |
1014 |
23 |
· ECW Image Web Server |
1014 |
24 |
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 |
0 |
Project Tree |
||
§ Create Location |
1016 |
0 |
§ Create Tree Message |
1017 |
0 |
§ Create Group |
1018 |
0 |
§ Capture Tree State |
1019 |
0 |
Project |
||
Project Settings |
1020 |
0 |
Publish |
|
|
§ Publish Project as Local Kit |
1007 |
0 |
§ Publish Project as Internet Kit |
1144 |
0 |
§ Extract and Publish Area as Local Kit |
1028 |
0 |
§ Publish Project as KMZ |
1145 |
0 |
Catalog |
||
Search Catalog |
||
§ Search for Feature Layers |
1128 |
0 |
§ Search for Imagery Layers |
1129 |
0 |
§ Search for Elevation Layers |
1130 |
0 |
Connect to Catalog |
1131 |
0 |
Bind Project |
1132 |
0 |
Catalog Manager |
1133 |
0 |
Clipboard |
||
Paste |
1030 |
0 |
Copy |
1031 |
0 |
Cut |
1032 |
0 |
Delete |
1033 |
0 |
Analysis Tab
Name |
Code |
Parameter |
Measure |
||
Horizontal |
1034 |
0 |
Aerial |
1035 |
0 |
Vertical |
1036 |
0 |
Area |
1037 |
0 |
Terrain Analyze |
||
Contour Map |
||
§ Contour Colors |
1038 |
0 |
§ Contour Lines |
1039 |
0 |
§ Contour Colors and Lines |
1040 |
0 |
§ Contour Pallets |
1041 |
0 |
Slope Map |
||
§ Slope Color Map |
1092 |
0 |
§ Slope Directions |
1093 |
0 |
§ Slope Color Map and Directions |
1094 |
0 |
§ Slope Palettes |
1098 |
0 |
Best Path |
1042 |
0 |
Terrain Profile |
1043 |
0 |
Flood |
1044 |
0 |
Volume |
1045 |
0 |
Line of Sight |
||
Line of Sight |
1046 |
0 |
Viewshed |
1047 |
0 |
Threat Dome |
1048 |
0 |
Shadow |
||
Shadow Analysis |
1149 |
14 *Only valid in TerraExplorer GUI |
Navigation Tab
Name |
Code |
Parameter |
Navigation Mode |
||
Drag |
1049 |
0 |
Slide |
1050 |
0 |
Turn and Tilt |
1051 |
0 |
3D Mode |
||
3D |
1052 |
0 |
2D |
1053 |
0 |
2D North |
1054 |
0 |
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 |
0 |
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 |
Indoor Navigation |
||
Collision Detection |
1140 |
0 |
Indoor Views |
1149 |
0 *Only valid in TerraExplorer GUI |
Map |
||
Navigation Map Settings |
1058 |
0 |
Navigation Aid |
||
GPS Tracking |
1149 |
1 *Only valid in TerraExplorer GUI |
Target |
1149 |
2 *Only valid in TerraExplorer GUI |
Multiple Coord Sys |
1149 |
3 *Only valid in TerraExplorer GUI |
View Tab
Name |
Code |
Parameter |
Terrain Imagery |
||
Hide Terrain |
1059
|
Type: Integer Can be one of the following values: § Null – Toggle § 0 – Show § 1 – Hide |
Terrain Opacity |
1060 |
Can be any integer value from 0 to 100 |
L/L Coordinates |
1061
|
Type: Integer Can be either of the following values: § 0 – Decimal units § 1 – Deg, min, sec units |
Speed |
1062
|
Type: Integer Can be one of the following values: § 0 - KMH § 1 - MPH § 2 - Knots |
Altitude |
1063
|
Type: Integer Can be either of the following values: § 0 – Meters § 1 – Feet |
|
1064
|
Type: Integer Can be either of the following values: § 0 – AGL Units § 1 – AMSL Units |
Screen Overlay |
||
Navigation Controls |
1065 |
0 |
Center Sign |
1065 |
1 |
Status Bar |
1065 |
2 |
Scale Bar |
1065 |
3 |
Time Slider |
1065 |
4 |
Graphic HUD |
1065 |
5 |
Field of View |
||
|
1066 |
Type: Double Can be one of the following values: 90.0; 70.0; 53.0; 45.0; 35.0; 25.0; 15.0 |
Environmental Effects |
||
Show Clouds |
1154 |
0 |
Show Water |
1155 |
0 |
Objects Tab
Name |
Code |
Parameter |
Label |
||
Text |
1012 |
0 |
Image |
1012 |
1 |
Video |
||
Video on Terrain |
1012 |
2 |
Video on Billboard |
1012 |
3 |
2D Objects |
||
Polyline |
1012 |
4 |
Polygon |
1012 |
5 |
2D Shapes |
||
§ 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 Object |
||
3D Model |
||
§ 3D Model |
1012 |
13 |
§ Point Cloud |
1012 |
25 |
§ Linear Point Cloud Set |
1012 |
35 |
Building |
1012 |
14 |
Modify Terrain |
1012 |
15 |
Hole on Terrain |
1012 |
16 |
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 |
Dynamic Objects |
||
Ground Object |
1012 |
26 |
Aerial Object |
1012 |
27 |
Libraries |
||
Data Library |
1149 |
13 *Only valid in TerraExplorer GUI |
Google Warehouse |
1149 |
15 *Only valid in TerraExplorer GUI |
Tools Tab
Name |
Code |
Parameter |
Snapshot |
||
Snapshot |
|
|
§ Snapshot 3D View to New Window |
1067 |
0 |
§ Save 3D View Snapshot in File |
1068 |
0 |
Extract Terrain |
||
Extract to MPT |
1141 |
0 |
Collaboration |
||
Collaboration |
1149 |
4 *Only valid in TerraExplorer GUI |
Draw Tool |
||
Draw |
1149 |
5 *Only valid in TerraExplorer GUI |
Duplicate Objects |
1149 |
6 *Only valid in TerraExplorer GUI |
Power Lines |
1149 |
7 *Only valid in TerraExplorer GUI |
Pipe Lines |
1149 |
8 *Only valid in TerraExplorer GUI |
Time |
||
Timespan Tags |
1149 |
9 *Only valid in TerraExplorer GUI |
Convert |
||
Make CPT |
1149 |
10 *Only valid in TerraExplorer GUI |
Make XPL |
1149 |
11 *Only valid in TerraExplorer GUI |
Resolution Pyramid |
1149 |
12 *Only valid in TerraExplorer GUI |
Calculate |
||
Block Width |
1149 |
16 *Only valid in TerraExplorer GUI |
Layer Edit Tab
Name |
Code |
Parameter |
Layer |
||
Layer Properties |
1022 |
0 |
Selection |
||
Select Feature |
1070 |
0 |
Spatial Query |
||
§ Area Selection |
1071 |
0 |
§ Line Selection |
1072 |
0 |
§ Point Selection |
1073 |
0 |
§ Feature Selection |
1156 |
0 |
Buffer |
1096 |
Type: Double Value – Always in meters |
Type |
1097 |
Type: Integer Selection type can be one of the following values: § 1 – Intersect § 2 – Completely within |
Edit |
||
Add Point/Polyline/Polygon |
1077 |
Type: Integer ItemID of the layer. |
Editing |
||
§ Merge |
1078 |
0 |
§ Clip |
1080 |
0 |
§ Intersect |
1082 |
0 |
§ Explode |
1084 |
0 |
§ Explode All |
1085 |
0 |
§ Attributes |
1086 |
0 |
§ Delete |
1075 |
0 |
Attributes |
||
Attribute Table |
1086 |
0 |
Search (field) |
993 |
Type: String Field Name (specify/”All Fields”); search string |
In (search) |
|
|
Search (Button) |
1127 |
0 |
Load and Save |
||
Refresh Layer |
1087 |
0 |
Save Layer |
1088 |
0 |
Export |
||
§ Save as |
1089 |
0 |
§ Save Selection as |
1076 |
0 |
§ Convert to Group |
1090 |
0 |
Presentation Tab
Name |
Code |
Parameter |
Locations |
||
Add Location |
|
|
§ Add Location |
1099 |
0 |
§ Select Location |
1153 |
0 |
§ Select Object to Follow |
1100 |
0 |
Record Flight |
1101 |
0 |
Operations |
||
Add Caption |
||
§ Add Caption |
1102 |
0 |
§ Clear Caption |
1126 |
0 |
Add Operation |
||
§ Show Group or Object |
1103 |
0 |
§ Hide Group or Object |
1104 |
0 |
§ Set underground mode on |
1105 |
0 |
§ Set underground mode off |
1106 |
0 |
§ Adjust Time Range for Group |
1107 |
0 |
§ Set Time |
1108 |
0 |
§ Play Time Animation |
1151 |
0 |
§ Activate a Message |
1109 |
0 |
§ Open Tool |
1110 |
0 |
§ Restart Dynamic Object |
1134 |
0 |
§ Flight Speed |
1148 |
0 |
Edit Presentation |
1111 |
0 |
Play |
||
Stop |
1113 |
0 |
Previous |
1114 |
0 |
Next |
1115 |
0 |
Play |
1112 |
0 |
Play Algorithm |
1120 |
Type: Integer Can be one of the following values: § 0 – FlyTo § 1 - Spline |
Play Mode |
1121 |
Type: Integer Can be one of the following values: § 0 – AutoPlay § 1 - Standard |
Play Speed |
1122 |
Type: Integer Can be one of the following values: § 0 – Very slow § 1 - Slow § 2 – Normal § 3 – Fast § 4 Very fast |
Loop Presentation |
1123 |
Type: Boolean True or False |
Movie |
||
Create Movie |
1116 |
0 |
Frames |
1117 |
Type: Integer Number of frames |
Frame Size |
1118
|
Type: Integer 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 |
Best Quality |
1119 |
Type: Boolean True or False |
Caption Settings |
||
Size |
1135 |
Type: Integer Can be one of the following values: § 0 – Fixed size § 1 – Automatically adjust size |
Width |
1136 |
0 |
Height |
1137 |
0 |
Caption Position |
1125 |
Type: Integer 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 |
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.