How to update AutoCAD-View?

How to update AutoCAD-View?

Anonymous
Not applicable
316 Views
1 Reply
Message 1 of 2

How to update AutoCAD-View?

Anonymous
Not applicable
My Problem:
I draw a entity for example a polyline. I change the color of the line. Then I open a CDialog with DoModal().
The PROBLEM: The color of line is not changed! After closing the dialog the color is changed.
I think its a problem with actualize the autocad view.
This function does not work:

CView* pActiveView = acedGetAcadFrame()->GetActiveFrame()->GetActiveView();
pActiveView->UpdateData(FALSE);
pActiveView->UpdateWindow();

Could somebody help me? How can I update the view before opening the Dialog?

Thanks for help!
Robert
0 Likes
317 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
May be the problem is in your code with changing entity's color. Please, publish whole code for better answer.
0 Likes