AnsweredAssumed Answered

SketchEditor GeometryChanged events NewGeometry equals OldGeometry

Question asked by hashagen_j on Aug 12, 2018
Latest reply on Sep 18, 2018 by mangoyoga

The GeometryChanged event of the SketchEditor does sometimes return NewGeometry which equals OldGeometry even though that a point has been modifed using the editor.

 

Reproduction Steps:

  1. Start the SketchEditor with an already existing geometry as initial geometry and drawAndEdit == true.
  2. Select and move one point of the geometry.
    Expectation: GeometryChanged event gets raised and NewGeometry is different from OldGeometry.
    Observation: GeometryChanged event gets raised and NewGeometry equals OldGeometry (OldGeometry.IsEqual(NewGeometry) == true).

Adding a point, deleting a point or moving multiple points will return the correct NewGeometry.

 

When registering to the PropertyChanged event and filtering for Geometry property the provided value is what I'd expected to be returned as NewGeometry from the GeometryChanged event. So registering to the PropertyChanged event is currently used by me as a workaround.

Outcomes