SketchEditor ReplaceGeometry Doesn't Redraw

418
2
Jump to solution
07-25-2017 12:07 PM
MarkCederholm
Regular Contributor II

I'm using SketchEditor.ReplaceGeometry to update its geometry, but the current sketch doesn't redraw to reflect the new geometry.  Am I missing something?  [Update:]  I see that the GeometryChanged event isn't fired either.

[100.1 WPF]

0 Kudos
1 Solution

Accepted Solutions
MarkCederholm
Regular Contributor II

I figured it out.  I had the StartAsync drawAndEdit parameter set to false.

View solution in original post

0 Kudos
2 Replies
MarkCederholm
Regular Contributor II

It turns out that ReplaceGeometry is not actually replacing the geometry.  If I get the SketchEditor.Geometry after calling ReplaceGeometry, it's still the old geometry.

0 Kudos
MarkCederholm
Regular Contributor II

I figured it out.  I had the StartAsync drawAndEdit parameter set to false.

0 Kudos