using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;
using Autodesk.Navisworks.Api.DocumentParts;
namespace ClassLibrary1
{
[PluginAttribute("Basic", "ADSK", ToolTip = "Popups", DisplayName = "Hello")]//名字,开发者号(四位字串),提示,用户界面显示名
[AddInPluginAttribute(AddInLocation.AddIn)]//设定插件的位置
public class Class1 : AddInPlugin
{
string modelInfo = "";
public override int Execute(params string[] parameters)
{
try
{
//当前文档
Document doc = Application.ActiveDocument;//application是运行了之后自动提供的