Message 1 of 1
Update the drawing, in spite of a modal window
Not applicable
08-19-2009
04:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
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