I´m working with ArcGIS v10. I would like to have a route with hatch text expressions like this: 50+500 km. Creating a route and displaying the "standard" milage e.g. for a river like "20,5" is done, but I don´t know the right Phyton-code to label the hatches like written above.
I startet trying with this:
Function FindLabel ( esri__measure ) FindLabel = esri__measure/1000 End Function
The results is a milage in km, but I don´t know to ad a "+" and every half kilometer a "500" or a "0".
Actually, I didn't choose any parser. The syntax is VBScript, but when I select VBScript parser it doesn't work indeed. (It seem that esri__measure works only when no parser is selected)
To unselect parser unclick 'Advanced' and click it again.
One more note to this script: it works in this form if esri__measure is in meter and hatch interval is 500 m.
looks great! It´s written in VBA right? If I paste it in ArcGIS it says, that the code cointains a mistake. I took the VBScript parser. Check the pic below (hope you understand it´s german version).
Actually, I didn't choose any parser. The syntax is VBScript, but when I select VBScript parser it doesn't work indeed. (It seem that esri__measure works only when no parser is selected)
To unselect parser unclick 'Advanced' and click it again.
One more note to this script: it works in this form if esri__measure is in meter and hatch interval is 500 m.