/*------------------------------------------------------------------------- * 功能描述:RevitShell * 作者:xulisong * 创建时间: 2019/1/16 16:52:37 * 版本号:v1.0 * -------------------------------------------------------------------------*/ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; using Autodesk.RevitAddIns; namespace RevitVersion { public class RevitShell { public static void Start(string path) { Process.Start(path); } public static void Start(RevitProduct revitProduct) { var directory = revitProduct.InstallLocation; var filePath = Path.Combine(directory, "Revit.exe"); Start(filePath); } } }