DockableDialog - wrong content displayed

DockableDialog - wrong content displayed

SebastianSchild2009
Contributor Contributor
433 Views
1 Reply
Message 1 of 2

DockableDialog - wrong content displayed

SebastianSchild2009
Contributor
Contributor

Hi there,

I have downloaded Jeremy Tammik's DockableDialog (simple) Sample from github: 

https://github.com/jeremytammik/DockableDialog

and changed all settings (.NET Framework target version) to build this solution for Revit 2018.2

After integrating the add-in file into Revit 2018.2 the “AecLabs“ ribbon and all buttons are shown as expected. But the “register dockablewindow“ button is greyed out directly after the startup of Revit and clicking the “show dockablewindow“ button opens a docked dialog - but instead of the content defined in the “mainpage.xaml“ a “P&ID modeler“ dialog comes up.

 

I have also tried to replace all (three?) occurrences of the panel's GUID in the sourcecode in the “ribbon.cs“ by a newly generated GUID but after that nothing really works and Revit displays an error message after trying to use the “show dockablewindow“ button.

 

Can anybody tell me what went wrong? Or has anybody managed to realise a dockable dialog or modeless windows form for the Revit API with VB.net - I am not really a friend of that C# “stuff“.

 

Thanks, Sebastian

0 Likes
434 Views
1 Reply
Reply (1)
Message 2 of 2

JimJia
Alumni
Alumni

Dear Sebastian Schild,

 

I didn't find any problem in Jeremy's code sample, did you encounter any problem without your changes? You may need to double check your changes to ensure no problematic code introduced. 

 

If you're not familiar with C#, you can try to convert C# to VB.net easily via similar tool below:

http://converter.telerik.com/

 

Besides, note that the existing sample may have problem on WPF web browser, you can refer to post below on more details about fix solution, in case you will get similar crash later:

https://forums.autodesk.com/t5/revit-api-forum/revit-crashes-when-second-document-is-created-opened-...

 

 

 

 


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes