Proceed to GeoCommunity Home Page


SpatialNewsGIS Data DepotGeoImaging ChannelGIS and MappingSoftwareGIS JobsGeoBids-RFPsGeoCommunity MarketplaceGIS Event Listings
HomeLoginAccountsAboutContactAdvertiseSearchFAQsForumsCartFree Newsletter

Sponsored by:


TOPICS
Today's News

Submit News

Feature Articles

Product Reviews

Education

News Affiliates

Discussions

Newsletters

Email Lists

Polls

Editor's Corner


SpatialNews Daily Newswire!
Subscribe now!

Latest Industry Headlines
SiteVision GIS Partnership With City of Roanoke VA Goes Live
Garmin® Introduces Delta™ Upland Remote Trainer with Beeper
Caliper Offers Updated Chile Data for Use with Maptitude 2013
Southampton’s Go! Rhinos Trail Mapped by Ordnance Survey
New Approach to Measuring Coral Growth Offers Valuable Tool for Reef Managers
Topo ly - Tailor-Fit for Companies' Online Mapping Needs

Latest GeoBids-RFPs
Surveying Services*Canada
Hydrological Assessment*Belize
Nautical Charts*Poland
Software & Telemetry GPS
Spatial Data Management-DC

Recent Job Opportunities
Planner/GIS Specialist
Team Leader- Grape Supply Systems
Geospatial Developer

Recent Discussions
Raster images
cartographic symbology
Telephone Exchange areas in Europe
Problem showcasing Vector map on Windows CE device
Base map

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!

Copyright© 1995-2012 MindSites Group / Privacy Policy

GeoCommunity™, Wireless Developer Network™, GIS Data Depot®, and Spatial News™
including all logos and other service marks
are registered trademarks and trade communities of
MindSites Group