SketchEditor ReplaceGeometry Doesn't Redraw

665
2
Jump to solution
07-25-2017 12:07 PM
MarkCederholm
Occasional Contributor III

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
Occasional Contributor III

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

View solution in original post

0 Kudos
2 Replies
MarkCederholm
Occasional Contributor III

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
Occasional Contributor III

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

0 Kudos