SketchEditor ReplaceGeometry Doesn't Redraw

202
2
Jump to solution
07-25-2017 12:07 PM
Highlighted
Regular Contributor

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]

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Regular Contributor

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

View solution in original post

Reply
0 Kudos
2 Replies
Highlighted
Regular Contributor

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.

Reply
0 Kudos
Highlighted
Regular Contributor

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

View solution in original post

Reply
0 Kudos