Message 1 of 2
Opening Form automatically when Revit Command is completed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to do some thing like:
MyWindow wnd = new MyWindow(viewModel);
wnd.ShowDialog();
in this window there is a button that call The Revit Command (Adjust Analytical Model):
private void CorrectButton_Click(object sender, RoutedEventArgs e)
{
MyWindow.GetWindow(this).Hide();
MyApplication.PostCommand(RevitCommandId.LookupPostableCommandId(
PostableCommand.AdjustAnalyticalModel));
}
When the Funktion Adjust Analytical Model is closed, the window open automatically:
wnd.ShowDialog();