I have googled and tested different approaches for a long while. So I have come here to ask what is the recommended way to programmatically add or change the z values of the two end vertices of a polyline, based on a two values from the feature's attributes table.
1. change the z value of vertex 1 according to the value found in the height1 attribute
2. change the z value of vertex 2 according to the value found in the height2 attribute
I am having trouble finding the appropriate approach. Do i use applyEdits() and change the polyline in place or build a completely new polyline and add to the featurelayer?