Using VB.NET, I need to add a dialog in Revit, but it seems to be a bit problematic.
I have tried to study a C # project created in REX expansion wizard, but I can not figure out how exactly the dialogue is implemented and embedded in Revit.
I can find many examples of the use of a task-dialogue, but that is not the kind of dialogue that I need.
What I need is a dialog box that contains some text boxes, combo boxes, etc. and blends nicely into the Revit user interface.
Does anyone have an example of that?
regards
Jan grenov
Solved! Go to Solution.
Solved by jeremy_tammik. Go to Solution.
Solved by PhillipM. Go to Solution.
To use Forms inside Revit you just need to create a 'classic' WinForm, and there are several samples of that on the web.
Thanks Augusto
I guess that I might have posted my question unpecisely. My fault. Sorry!
I will try to be a little more precise ..
Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(dia)
I want my form to be hidden when the Revit window is hidden. Not to show as if it was an an independant application. Must I somehow refer to the Revit hwnd or have I missed something basic?
Regards
Jan Grenov
Ok.
You want to show a dockable dialog that belongs to Revit. Two options.
Regards
Phillip
Dear Jan,
Yes, you were indeed imprecise 🙂
Yet, rejoice!
Salvation is nigh!
Google for "JtWindowHandle":
http://lmgtfy.com/?q=revit+api+JtWindowHandle
Cheers,
Jeremy
p.s. Phillip's answer is very valuable. If you can use a hosted palette, that is much more elegant and integrated. Thank you, Phillip!