|
|
| GeoCommunity Mailing List |
| |
| Mailing List Archives |
| Subject: | Re: GISList: Script Question |
| Date: |
07/10/2002 02:23:12 AM |
| From: |
atiul ahmed |
|
|
Hi!
This is the script you have asked for.Using this script you can display the highway ramp for a particular scale.I have used only the highway ramp as a selection criteria. you can extend the script to select features for multiple criteria( include the highway number....).The other criteria can be obtained from the textboxes or comboboxes in the dialog box).For this you have to add more query strings and search the vtab and change the "seletiontype" to #VTAB_SELTYPE_AND in the "query" request accordingly.
Do contact me for further queries.
The script: ---------------------------------------------- myproject = av.getproject
myview = myproject.FindDoc ("the name of the view") myftheme = myview.findtheme("name of highway shp file")
mydialog = myproject.finddialog("name of the dialog") mycombobox = mydialog.findbyname("name of combo box in the dialog")
myselectedhighwayramp = mycombobox.GetSelection
myVtab = myftheme.getftab mybitmap = myvtab.getselection
mysearchstr = myselectedhighwayramp.asstring myquerystring = "[highway ramp field] = " + mysearchstr.quote
myVTab.Query (myquerystring, mybitmap, #VTAB_SELTYPE_NEW)
myselestedextent = myftheme.GetSelectedExtent myView.GetDisplay.SetExtent(myselestedextent)
myScale = 6000 myView.GetDisplay.ZoomToScale(myScale)
----------------------------------------------
With Regards Atiul Ahmed
--
On Tue, 9 Jul 2002 17:26:52 Katera_Afshar wrote: >Hi list: > >I need to write an script for a dialog box, what I need to do is to write a >code so when user choose a particular highway ramp from a dialog box and >hit the OK button, that script runs and shows directly that location with a >1:6000 scale, dose anyone know or have any experience about it? > >Any help and information would be appreciated. > >Thanks, > > > > > > >To unsubscribe, write to gislist-unsubscribe@geocomm.com >________________________________________________________________________ >Setup a GeoCommunity Account and have access to FAST DataDownloads >and Premium Career Posting at a discounted rate! >https://www.geocomm.com/cgi-bin/accounts/login > >On-line Archives available at >http://spatialnews.geocomm.com/community/lists/ > >
_____________________________________________________ Supercharge your e-mail with a 25MB Inbox, POP3 Access, No Ads and NoTaglines --> LYCOS MAIL PLUS. http://www.mail.lycos.com/brandPage.shtml?pageId=plus
To unsubscribe, write to gislist-unsubscribe@geocomm.com ________________________________________________________________________ Setup a GeoCommunity Account and have access to FAST DataDownloads and Premium Career Posting at a discounted rate! https://www.geocomm.com/cgi-bin/accounts/login
On-line Archives available at http://spatialnews.geocomm.com/community/lists/
|
|

Sponsored by:

For information regarding advertising rates Click Here!
|