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
Nautical Charts*Poland
Software & Telemetry GPS
Spatial Data Management-DC
Geospatial and Mapping-DC
Next-Gen 911-MO

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: [gislist] Avenue question
Date:  02/05/2004 08:55:01 AM
From:  Cathy Coldrey



Dear List,

I have a question regarding custamising Symbols in Avenue. I am using
ArcView 3.2. I have written an avenue script that is attached to a
check box in a dialogue. The script adds themes to a view and sets the
colour to magenta. I would ideally like to set the symbol to be
something other than the default to avoid confusion with other layers
such as a rectangle or triangle. I have had a look around and I have
found several scripts that make points and their symbols, but none that
alter an existing symbol.

The code I have written (and works) is below. If any one has any
suggestions as to how I can set the symbol style of an existing point it
would be of the utmost appreciation.

Thanking you desperately in advance

Cathy




'**************************
aCBWater = SELF.GetDialog.FindByName("aCheckBoxWater")


WaterThemeA = SrcName.Make("chemistryWaterwatermarch2000.shp")
WaterThemeB = SrcName.Make("chemistryWaterwateroct2000.shp")
WaterThemeC = SrcName.Make("chemistryWaterwaterjuly2000.shp")
WaterThemeD = SrcName.Make("chemistryWaterwaterjan2001.shp")
theActiveDoc = av.GetActiveDoc
isView = theActiveDoc.Is(View)
isTable = theActiveDoc.Is(Table)
isProject = theActiveDoc.Is(Project)

'**********************************************************
' this section asks if a view is the active document
'**********************************************************


If ((isView) and (aCBWater.IsSelected =true)) then



theThemeA = Theme.Make(WaterThemeA)
theActiveDoc.AddTheme(theThemeA)
theThemeA.SetVisible(true)
theThemeA.SetActive(true)


theLegendA = theThemeA.GetLegend
theLegendA.GetSymbols.Get(0).SetColor(Color.GetMagenta)
theThemeA.UpdateLegend

theThemeB = Theme.Make(WaterThemeB)
theActiveDoc.AddTheme(theThemeB)
theThemeB.SetVisible(true)
theThemeB.SetActive(true)

theLegendB = theThemeB.GetLegend
theLegendB.GetSymbols.Get(0).SetColor(Color.GetMagenta)

theThemeB.UpdateLegend

theThemeC = Theme.Make(WaterThemeC)
theActiveDoc.AddTheme(theThemeC)
theThemeC.SetVisible(true)
theThemeC.SetActive(true)

theLegendC = theThemeC.GetLegend
theLegendC.GetSymbols.Get(0).SetColor(Color.GetMagenta)
theThemeC.UpdateLegend

theThemeD = Theme.Make(WaterThemeD)
theActiveDoc.AddTheme(theThemeD)
theThemeD.SetVisible(true)
theThemeD.SetActive(true)

theLegendD = theThemeD.GetLegend
theLegendD.GetSymbols.Get(0).SetColor(Color.GetMagenta)
theThemeD.UpdateLegend



'**********************************************************

_______________________________________________
gislist mailing list
gislist@lists.geocomm.com
http://lists.geocomm.com/mailman/listinfo/gislist

_________________________________
This list is brought to you by
The GeoCommunity
http://www.geocomm.com/

Get Access to the latest GIS & Geospatial Industry RFPs and bids
http://www.geobids.com

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