ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Objects disappear when zoomed using scroll wheel

3 REPLIES 3
Reply
Message 1 of 4
mwst
600 Views, 3 Replies

Objects disappear when zoomed using scroll wheel

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.

 

 

3 REPLIES 3
Message 2 of 4
Balaji_Ram
in reply to: mwst

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



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 4
mwst
in reply to: Balaji_Ram

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,

 

 

 

Message 4 of 4
Balaji_Ram
in reply to: mwst

Yes, please attach the project here.

I will try it out.

 

Thanks

 

Balaji



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost