Navisworks Manage 2023 crashes when adding plugin to the Plugins folder

Navisworks Manage 2023 crashes when adding plugin to the Plugins folder

16164BDZVH
Explorer Explorer
863 Views
2 Replies
Message 1 of 3

Navisworks Manage 2023 crashes when adding plugin to the Plugins folder

16164BDZVH
Explorer
Explorer

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

0 Likes
Accepted solutions (1)
864 Views
2 Replies
Replies (2)
Message 2 of 3

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @16164BDZVH ,

 

I think you have chosen the .Net core instead of the .Net framework in Visual studio. That's why your Navisworks is crashing.

NW.png

 

If this doesn't help, could you please explain your issue in detail?


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 3

16164BDZVH
Explorer
Explorer
Thank you very much, my problem has been solved by your solution 🙂 Sorry for the late reply
0 Likes