Save as Dialog open with delay

Save as Dialog open with delay

tobias.floescher
Contributor Contributor
371 Views
2 Replies
Message 1 of 3

Save as Dialog open with delay

tobias.floescher
Contributor
Contributor

I'm facing a very strange problem. When I start my addin from Visual Studio for debugging, the save as dialog of Revit sometimes have a very annoying delay (could be 60 seconds or more!).

 

An existing addin of mine doesn't have this problem. I made this old addin new from scratch, and the problem is here. Starting the old one (from Visual Studio) and all is fine. It makes me crazy, I double checked all the instructions, but I don't see the difference. Well some things I make in the new one little different, but this could not be the case. The biggest difference is in the creation of the ribbon buttons and its availability mechanism. I guess the reason is somewhere around this.

 

Have any of you experience with something like that?

It is not possible to post some code or zip file..

 

The problem does not occur when I start Revit 'normal' (not from Visual Studio).

0 Likes
372 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Maybe some specific Visual Studio debugger setting? E.g., unmanaged plus managed code, tracing, debugging into additional libraries, loading debugging information for the SaveAs dialogue, ...

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

tobias.floescher
Contributor
Contributor

The same Visual Studio instance has the problem with the new one, and then loading the old solution and it works. Same settings.. but thanks for the answer.

 

Similar, when I open for example a dialog of my addin thru a command, my buttons are disabled. I close the dialog and the buttons are still disabled for some time. After a while the availability class is called and the buttons are enabled again. In the meantime, the Idle event was fired several times, just to check.

sometimes same issue with the CanExecute of a regular wpf command.

 

It seems, any process of Revit is somehow blocked.

0 Likes