I Want To Menu and Batch Commands
Hello! I would like to add to the "I Want to Menu" the ability to activate the Enter Coords tool on the Analysis tab. However, I am having issues activating the tool in the last command. The batch commands area working fine because if I change the Activate Tool parameter to Measure Distance it will activate the tool and work. I believe my main problem is....What is the command parameter to to activate the Enter Coord tool? Thank you!
-
For people who don't know how to use batch commands, here's the syntax:
<Batch>
<BatchItem Command="ShowAdvancedTools" />
<BatchItem Command="SetCurrentTab" CommandParameter="Identify Tools" /> <!--Change to your toolbar name-->
<BatchItem Command="ActivateTool" CommandParameter="IdentifyRectangle" /> <!--Change to your tool name-->
</Batch>
The Coordinates tools are part of the CoordinateToolsRegion, so I don't think you can call the enter new coordinates tool individually. Good idea for an enhancement, though.
0 -
John,
Thank you for your response! I have been able to accomplish the batch commands using the same syntax. You mention that the coordinate tools is in the coordinateToolsRegion, and at first I thought the same thing, that they couldnt be activated with "Activate Tool" command. However, take a look at the Measure Distance inside of the I want to.... menu. This batch command activates the Measure Distance tool inside of the MeasurementToolsRegion using the parameter "MeasureDistance" after ActivateTool. Now, I can change this to "MeasureArea" and it will activate that tool and work. So what is the Parameter used to activate "Enter Coords"? I tried just "EnterCoords" and that does not work.
0 -
There may be a valid command parameter for the Enter Coordinates tool, but I haven't found any documentation for it. This'd be a case where I'd say go to LG for support.
Long term, it would be nice if LG published a full list of commands and valid parameters instead of the subset found in the Viewer documentation.
0 -
Agreed John! I have found that all the commands and valid parameters can not be found in the Admin guides as the training class suggested.
0 -
I found another forum that referenced this same problem and found the solution. The command is ActivateView and the Parameter is CustomCoordinateView.
(https://support.geocortex.com/essentialsGSCForum?sub-nav=forum&main-nav=essentials&feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=906600000000AhYAAU) CoordinateTool Commands
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
5 Kommentare