Update the drawing, in spite of a modal window

Update the drawing, in spite of a modal window

Anonymous
Not applicable
283 Views
0 Replies
Message 1 of 1

Update the drawing, in spite of a modal window

Anonymous
Not applicable
Hi,

in order to manage XRef, I created my own window (WPF window), that I called by clicking on a button in the ribbon (autocad 2009)

private void onManageXRefClick(object sender, RoutedEventArgs e)
{
// Create the xrefmanager
XRefManager xRefManager = new XRefManager();
// Open the XRef manager
acadApp.ShowModalWindow(xRefManager);
}

In this window, I can dettach a XRef by pressing a button. Everything is fine but the drawing isn't update, until I close the xRefManager windows.

The only thing I do when I close the windows is this.Close();

I replace the window opening by a xRefManager.Show();
In this case, the drawing is update when I want.

So, the problem comes from the fact that the window is modal.

Is there a way to update the drawing ?
- Thanks to a command ?
acadApp.DocumentManager.MdiActiveDocument.SendStringToExecute([COMMANDE], false, false, false);
- thanks to a method ?
I try Editor.Regen() but it doesn't work.

Thank you
0 Likes
284 Views
0 Replies
Replies (0)