navisworks api openfile
时间: 2023-05-22 14:05:32 浏览: 187
navisworks2016 SDK开发包
4星 · 用户满意度95%
可以使用以下代码在 Navisworks 中打开文件:
using Autodesk.Navisworks.Api;
using System;
public void OpenFile(string filePath)
{
try
{
ApplicationControlledApplication app = ApplicationControlledApplication.Instance;
Document document = app.Documents.Open(filePath);
}
catch (Exception ex)
{
Console.WriteLine("Failed to open file: " + ex.Message);
}
}
阅读全文