我想在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)。 –