在窗体的构造函数中加上下面的一句代码即可:
new System.Windows.Interop.WindowInteropHelper(this).Owner = Autodesk.Windows.ComponentManager.ApplicationWindow;
【Revit】设置窗体的父窗体为Revit窗体
原文:https://www.cnblogs.com/mqxs/p/12622840.html