Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to create a simple plugin using .NET 6.0 to add to the Navisworks Manage 2023.
Everything looks fine from the start to after I build the code.
I followed the instructions in the Navisworks University to create a Hello World program but every time I tried to run Navisworks the Autodesk Error Report appeared (where you put your email so they can send you the error report).
The instruction video that I followed: Make NavisWORK for You: Intro to the Navisworks API | Autodesk University
My C# code:
using wf = System.Windows.Forms;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HelloWorld
{
[PluginAttribute("HelloWorld",
//Plugin name
"ADSK",
//Character developer ID or GUID
ToolTip = "Hello World",
//The tool tip for the item in the ribbon
DisplayName = "HelloWorld"
//Display name for the plugin in the ribbon
)]
[AddInPlugin(AddInLocation.AddIn)]
public class HelloWorld : AddInPlugin
{
public override int Execute(params string[] parameters)
{
wf.MessageBox.Show("Hello World");
return 0;
}
}
}
Many thanks for any answers
Solved! Go to Solution.