C# plugin example
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I'm a C# developer who likes to play with Fusion 360 as a hobby. One of the things that I find that could be better in Fusion is the parameters management.
So I thought I'd try and see if I can create a plugin to add advanced management for the parameters. I looked up possibilities for creating such plugin in C#, and it appears that there is some SDK for .NET.
The problem it that I have not found any example for how to tell Fusion 360 to load the plugin.
I do have downloaded on my computer ObjectARX_for_AutoCAD_2020_Win_64_bit, and referenced the core assemblies from there (AcCore.dll, AcDbMgd.dll, AcMgd.dll), and I created a small sample plugin:
namespace Sample
{
class MyCommand : IExtensionApplication
{
[CommandMethod("sample")]
public void Command()
{
Editor ed = Application.DocumentManager.MdiActiveDocument.Editor;
ed.WriteMessage("this is a test");
}
public void Initialize() { }
public void Terminate() { }
}
}
I just wanted to see my "sample" command appearing in the "Design Shortcuts" list.
I have failed miserably to determine what do I need to do after the DLL compiles successfully. I did saw a number of examples but they seem to be for AutoCAD, and the paths do not match. Trying to guess the path lead me nowhere.
So my question for you guys is:
Can someone tell me how to setup a C# plugin for Fusion 360?