Model upgrade dialog hijacks GUI

Model upgrade dialog hijacks GUI

Anonymous
Not applicable
392 Views
2 Replies
Message 1 of 3

Model upgrade dialog hijacks GUI

Anonymous
Not applicable

Hi all,

 

I have a wierd problem where my dialog is blank if a file get upgraded.

 

I have a dialog that loads a revit template file from disk, and the user can choose views from the template to copy into the current document. If the revit template version and the current revit version is the same, everything works good. If the revit template is say a Revit 2016 file, and im running Revit 2017, the file will be upgraded. If this happens, the graphics from the dialog disappears. Have anyone encountered the same problem, or found a good solution to it?

This is what my dialog looks like if i open a 2017 revit template:
2016-04-29_9-59-19.jpg


If i open a 2016-file, it gets upgraded and the dialog is blank:
2016-04-29_9-55-36.jpg

 

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

stever66
Advisor
Advisor

My first thought is did you use the newer version of .NET to build the application.  (What is it now?  4.5.2 or something like that?)

 

Or it may just be something that is going to happen when Revit has to upgrade a template.  Have you tried doing a form.refresh()?

0 Likes
Message 3 of 3

Anonymous
Not applicable
 

Stever66,

 

I'm using .NET 4.5.2. And yes've tried Form.refresh(), with no luck. If i have one External Command that loads (and upgrades) a file, and another External Command that collects info from the file and displays it in a dialog, it works. However, it seams strange that you would need a separate external command just to upgrate a file.
 
 
 
 
 
Am I the only one here experiencing this?
 
 
 
 
Cheers,
 
Eirik
 
0 Likes