我想在C#
代码中加载*.api
文件。我正在尝试从Revit文件中导出图像以用于c#应用程序中的特定视图。问题是从revit(*.rvt
)文件获取ExternalCommandData。如何使用C#在API中加载Revit文件?
public Autodesk.Revit.UI.Result Execute(ExternalCommandData revit,
ref string message, ElementSet elements)
{
UIApplication uiapp = revit.Application;
}
我想浏览所有*.rvt
文件并从Windows窗体调用上述方法。
我在关于此主题的博客文章[外部访问Revit API]中对我的答案进行了总结和增强(http://thebuildingcoder.typepad.com/blog/2017/05/external-access-to-the- Revit的api.html)。 –