Select to view content in your preferred language

How to get length of each segment of polyline? (using SketchViewModel)

44
0
yesterday
Sparkles
New Contributor

When I draw a polyline, I can see the length of each segment displayed with SketchViewModel. (as shown in screenshot)
How can I access these lengths from the event/argument in the SketchWidget's handleChange calllback?
The event is the geometry/polyline, but doesn't show the lengths/distances anhywhere in the data returned. Is there a way to add that data to the event returned in the callback?

Thanks so much for the help!

0 Kudos
0 Replies