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.
Hi,
This is not a behavior that i am aware of.
If you can please provide a non-confidential sample project to demonstrate the behavior, I can investigate this further.
Regards,
Balaji
Hi Balaji,
I tried to create a small sample but it didn't show that behavior. I need to add some more parts and try it out. But things got a bit busy.
Appreciate your help. I will get back to this one soon. Should I just upload the project here?
Thanks,
Yes, please attach the project here.
I will try it out.
Thanks
Balaji