Objects disappear when zoomed using scroll wheel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I draw some objects on screen, just some lines. They show up at desired location.
Then I show a dialog user interface. Modal dialog created in C# and displayed using wrapepr class. User clicks Ok on the dialog and is back in AutoCAD window.
The lines I drew are still visible on the screen.
At this point, if I zoom in using scrolling wheel, the lines disappear.
If I do rotate using mouse and keyboard, or using the cube, then everything appers back again.
I first thought it must be regen issue. So I added ads_regen call.
Then I also read some other stuff and added a couple more lines.
So here is the regen/refresh code I added. But no avail.
ads_regen();
actrTransactionManager->queueForGraphicsFlush();
actrTransactionManager->flushGraphics();
acedUpdateDisplay();
If I cancel out of the dialog , in which case no changes are made to the drawing - everything already existing works fine.
But if I hit OK, (some old lines are deleted, some existing lines are broken and some new lines are added) - the new lines are not visible, deleted lines are gone and existing lines (which get modified) are visible but disappear when zoomed in.
I appreciate any help.