Avenue HELP!

Avenue HELP!

Post by Christina Hil » Fri, 01 Dec 2000 04:00:00



I am currently writing Avenue scripts to autolabel a theme. I set all of
the properties correctly (I think), yet, recently, the autolabels have
stopped working like the script calls for them and they end up labeling
in the default 14-point, "Normal" style. I am certain that that the text
palette is not receiving my script commands but I am unsure as to what
commands I need to make my autolabels label correctly. Any help would be
appreciated. Below are the commands as I have them right now:

                    'Labels the streets surrounding a given
address/selected dot.
                    theView = av.GetActiveDoc
                    theVTabstreet = av.GetProject.FindDoc("SIMS")
                    theThemeStreet = theVTabstreet.FindTheme("STREETS")
                    av.GetActiveDoc.GetGraphics.SelectAll
                    theThemestreet.SetActive(true)
                    theThemestreet.SetVisible(true)
                    theVTabstreet = av.GetProject.FindDoc("Attributes of
Streets").GetVTab
                    theStreetName = theVTabstreet.FindField("Clname")

                    'Labels the streets within the view
                    aTextSym = TextSymbol.Make
                    aTextSym.SetFont(Font.Make("Arial","Bold"))
                    aTextSym.SetSize(8)
                    theThemestreet.SetLabelTextSym(aTextSym)
                    theThemestreet.SetLabelField(theStreetName)
                    theThemestreet.GetLabelField
                    anExt = theView.GetDisplay.ReturnVisExtent
                    theThemestreet.CanLabel
                    aLabeler = Labeler.Make(anExt)
                    aLabeler.Load(theThemestreet)
                    theView.GetAutoLabels(aLabeler, false)
                    av.GetActiveDoc.GetGraphics.UnselectAll

Thanks in advance for the help,
Christina Hill

 
 
 

1. Avenue Help!

I am currently writing Avenue scripts to autolabel a theme. I set all of

the properties correctly (I think), yet, recently, the autolabels have
stopped working like the script calls for them and they end up labeling
in the default 14-point, "Normal" style. I am certain that that the text

palette is not receiving my script commands but I am unsure as to what
commands I need to make my autolabels label correctly. Any help would be

appreciated. Below are the commands as I have them right now:

 'Labels the streets surrounding a given address/selected dot.
                    theView = av.GetActiveDoc
                    theVTabstreet = av.GetProject.FindDoc("SIMS")
                    theThemeStreet = theVTabstreet.FindTheme("STREETS")
                    av.GetActiveDoc.GetGraphics.SelectAll
                    theThemestreet.SetActive(true)
                    theThemestreet.SetVisible(true)
                    theVTabstreet = av.GetProject.FindDoc("Attributes of
Streets").GetVTab
                    theStreetName = theVTabstreet.FindField("Clname")

                    'Labels the streets within the view
                    aTextSym = TextSymbol.Make
                    aTextSym.SetFont(Font.Make("Arial","Bold"))
                    aTextSym.SetSize(8)
                    theThemestreet.SetLabelTextSym(aTextSym)
                    theThemestreet.SetLabelField(theStreetName)
                    theThemestreet.GetLabelField
                    anExt = theView.GetDisplay.ReturnVisExtent
                    theThemestreet.CanLabel
                    aLabeler = Labeler.Make(anExt)
                    aLabeler.Load(theThemestreet)
                    theView.GetAutoLabels(aLabeler, false)
                    av.GetActiveDoc.GetGraphics.UnselectAll

Thanks in advance for the help,
Christina Hill

2. MIME to FAX converter

3. Avenue help!!!!!

4. Centronics Parallel Printer on Mac?

5. Avenue Help

6. Please help the novice!

7. Avenue Help - Please!

8. Bruce Artwick's book (Re: Fixed point arithmetic)

9. Need Avenue help loading a saved legend

10. Need help from Avenue Experts

11. help Avenue - Dialog Designer

12. help me - script avenue STARTUP/SHUTDOWN

13. help Avenue: hotlinks