KB no longer maintained - MapViewer is a Legacy Product. Legacy Products are still supported, but no longer receive new features or updates. Many of MapViewer's features have been moved to Surfer. Please contact support@goldensoftware.com with any questions. |
Enter the Query expression in a script the same way you would enter it in the program, the only difference is the quotes. In a script, a single set of double quotes surrounds the entire expression, and anywhere within the string where quotes are needed (ie. around the PID or SID values), put two double quotes.
To run this script:
- Copy the text below, from the Sub Main start line to the End Sub end line.
- In a Windows Explorer window, navigate to C:\Program Files\Golden Software\MapViewer 8\Scripter.
- Double click on Scripter.exe to launch Scripter.
- Press Ctrl+A to select all of the existing lines.
- Press Ctrl+V to paste your copied script over top of these existing lines.
- Click Script | Run to run the script.
Sub Main
Dim mvApp, Plot As Object
Set mvApp = CreateObject("MapViewer.Application")
mvApp.Visible = True
'Opens the ContourMap.gsm sample file in a new plot window
Set Plot = mvApp.Documents.Open(mvApp.ApplicationFolder+"\samples\ContourMap.gsm")
'Performs the Query
Plot.Query(Verb:=mvQueryVerbApplyProperty, Region:=mvQueryMap, Point:=True, _
Expression:="PID=""Denver""", SymbolIndex:=33, SymbolSize:=0.3, SymbolFillColor:=mvColorBlue)
End Sub
Updated September 10, 2018
Comments
0 comments
Please sign in to leave a comment.