API判断本机安装的Revit版本信息
来源:互联网 发布:数据港 董事长辞职 编辑:程序博客网 时间:2024/05/29 10:57
[Transaction(TransactionMode.Manual)]
[Regeneration(RegenerationOption.Manual)]
public class cmdRevitVersion : IExternalCommand
{
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
UIDocument uiDoc = commandData.Application.ActiveUIDocument;
Autodesk.Revit.ApplicationServices.Application app = commandData.Application.Application;
Selection sel = uiDoc.Selection;
Transaction ts = new Transaction(uiDoc.Document, "http://revit.5d6d.com");
ts.Start();
string strInfo = "";
foreach (RevitProduct revitPro in RevitProductUtility.GetAllInstalledRevitProducts())
{
strInfo += revitPro.Name + "," + revitPro.InstallLocation + "\n";
}
ts.Commit();
WinFormTools.MsgBox(strInfo);
return Result.Succeeded;
}
}
[Regeneration(RegenerationOption.Manual)]
public class cmdRevitVersion : IExternalCommand
{
public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)
{
UIDocument uiDoc = commandData.Application.ActiveUIDocument;
Autodesk.Revit.ApplicationServices.Application app = commandData.Application.Application;
Selection sel = uiDoc.Selection;
Transaction ts = new Transaction(uiDoc.Document, "http://revit.5d6d.com");
ts.Start();
string strInfo = "";
foreach (RevitProduct revitPro in RevitProductUtility.GetAllInstalledRevitProducts())
{
strInfo += revitPro.Name + "," + revitPro.InstallLocation + "\n";
}
ts.Commit();
WinFormTools.MsgBox(strInfo);
return Result.Succeeded;
}
}
0 0
- API判断本机安装的Revit版本信息
- 获取本机安装的Revit版本信息
- 如何知道本机安装了哪几个Revit产品以及他们的版本?
- Android版本和API Level对应关系及输出本机的版本信息
- C# 判断本机是否安装Excel及多版本安装?获取Excel进程信息和打开Excel应用软件
- 如何用Revit API 在Revit的模型中获取轮廓族的截面信息
- android 获取本机其他app的版本信息
- Revit 项目文件的版本
- 获取操作系统信息(本机IP地址,Java版本,安装路径等)
- Revit 研发总部与Revit API部门的交流
- C#读取本机安装的.net framework 版本
- 本机安装多个版本的protoc
- 获取本机上已安装程序的信息
- ANDROID API 版本判断
- 简单Revit的信息导出到数据库
- revit二次开发获取墙的几何信息
- revit 二次开发 读取材料的信息
- 判断操作系统版本信息
- PICC 内嵌汇编
- 通过EditText填写同时进度条发生改变
- Android之判断service是否处于运行状态
- [leetcode] 168. Excel Sheet Column Title 解题报告
- 面试题32:字符串的排列
- API判断本机安装的Revit版本信息
- 价值博客列表
- 处理方法整理(不断更新)
- μC/OS-Ⅱ下的九个C语言文件功能函数大全
- Hadoop2.6.0完全集群安装配置
- Html页面浏览器工具类功能:document.execCommand()解析
- 工厂模式个构造函数的区别
- 使用Android studio 提交代码无反应的处理办法
- 使用PHP循环函数的一些知识,那些不曾了解的知识