Is there a way to easily label a polyline with its length and have it update automatically if the polyline changes?
|
Is there a way to easily label a polyline with its length and have it update automatically if the polyline changes?
I wonder if fields would help?Originally Posted by eebryant
Failing that, you could use a reactor and the place to find out about them would be in the programming forum.
I have tried the help file with no luck completing the task. I need to label a polyline with its length and have it update (automatically or manually) if the polyline length is modified. I understand this is possible with Map, how does this work?
There's two ways this can work, the first being annotation blocks as the label. I did a ATP course on it in May/Jun of 2006 (ATP134)
The other way is by using the display manager on the Map task Pane and using labels in the Style manager. With both methods you need to get the length property from the expression builder under the object property.
With the annotation blocks you have to tell Map to update the label(Block) but with the display manger and styles it's updates on regens.
I'll be posting an example of using the display manger & styles on my blog in a few days.
If you need help post back and we'll take you by the hand if time permits.
I cant seem to find ATP134 in the archives. is there a way to retrieve it? I haven't had time to work on this lately but have a little time now. Thanks for the guidance.
Judging by the numbers of the courses in the archives, I would say 134 was in July; and will be put in the archives any day now..Originally Posted by eebryant
Tic.......tic.......... tic........Originally Posted by BrenBren
I got to the ATP course and was doing good until I got to Pages 4 & 5 of Segment 2.
While trying to use the Expression Chooser in the Annotation Text Dialog Box to define the expression for the Value of the Attribute it always bombs giving the following message
FATAL ERROR: Unhandled Access Violation Reading 0x0004 Exception at 645e65d0h
Any suggestions?
Last edited by eebryant; 2006-11-02 at 06:54 PM.
A repair may help but if you want to try it with your polylines enter .length (period length) in the value text box. You can also use .angle in the rotation value box to rotate the text to match a single segment pline.Originally Posted by eebryant