得到Revit子窗体

start

/// <summary>
/// 得到主窗体句柄
/// </summary>
/// <returns></returns>
public static IntPtr GetIntPtr()
{
    return Process.GetCurrentProcess().MainWindowHandle;
}
/// <summary>
/// 得到Revit主窗体
/// </summary>
/// <returns></returns>
public static System.Windows.Forms.Form GetRevitForm()
{
    return (System.Windows.Forms.Form)System.Windows.Forms.Control.FromHandle(GetIntPtr());
}

url:http://greatverve.cnblogs.com/p/get-revit-child-form.html

上一篇:MySQL主从配置详解


下一篇:Swift 实现图片转字符画的功能