diff --git a/AddInManager.sln b/AddInManager.sln index 4009f80..a739b63 100644 --- a/AddInManager.sln +++ b/AddInManager.sln @@ -50,13 +50,9 @@ Global {1661572C-EF3A-4DD6-83BD-CB4239CE8CDD}.Debug N23|Any CPU.Build.0 = Debug N23|Any CPU {1661572C-EF3A-4DD6-83BD-CB4239CE8CDD}.Installer|Any CPU.ActiveCfg = Release N23|Any CPU {1661572C-EF3A-4DD6-83BD-CB4239CE8CDD}.Release N20|Any CPU.ActiveCfg = Release N20|Any CPU - {1661572C-EF3A-4DD6-83BD-CB4239CE8CDD}.Release N20|Any CPU.Build.0 = Release N20|Any CPU {1661572C-EF3A-4DD6-83BD-CB4239CE8CDD}.Release N21|Any CPU.ActiveCfg = Release N21|Any CPU - {1661572C-EF3A-4DD6-83BD-CB4239CE8CDD}.Release N21|Any CPU.Build.0 = Release N21|Any CPU {1661572C-EF3A-4DD6-83BD-CB4239CE8CDD}.Release N22|Any CPU.ActiveCfg = Release N22|Any CPU - {1661572C-EF3A-4DD6-83BD-CB4239CE8CDD}.Release N22|Any CPU.Build.0 = Release N22|Any CPU {1661572C-EF3A-4DD6-83BD-CB4239CE8CDD}.Release N23|Any CPU.ActiveCfg = Release N23|Any CPU - {1661572C-EF3A-4DD6-83BD-CB4239CE8CDD}.Release N23|Any CPU.Build.0 = Release N23|Any CPU {002AA75A-806D-4F10-B564-C92A7A221FFB}.Debug N22|Any CPU.ActiveCfg = Debug N22|Any CPU {002AA75A-806D-4F10-B564-C92A7A221FFB}.Debug N22|Any CPU.Build.0 = Debug N22|Any CPU {002AA75A-806D-4F10-B564-C92A7A221FFB}.Debug N23|Any CPU.ActiveCfg = Debug N23|Any CPU diff --git a/NavisAddinManager/App.cs b/NavisAddinManager/App.cs index 44a6b24..3037097 100644 --- a/NavisAddinManager/App.cs +++ b/NavisAddinManager/App.cs @@ -1,7 +1,7 @@ using Autodesk.Navisworks.Api.Plugins; using NavisAddinManager.Command; using NavisAddinManager.Properties; -using Test; +using Test = NavisAddinManager.Command.Test; namespace NavisAddinManager; @@ -26,8 +26,8 @@ public override int ExecuteCommand(string name, params string[] parameters) addInManagerFaceless.Execute(); break; case "ID_ButtonTest": - TestAddInManagerManual hello = new TestAddInManagerManual(); - hello.Execute(); + Test test = new Test(); + test.Execute(); break; } return 0; diff --git a/NavisAddinManager/Command/AddInManagerCommand.cs b/NavisAddinManager/Command/AddInManagerCommand.cs index 15848b7..ed6e845 100644 --- a/NavisAddinManager/Command/AddInManagerCommand.cs +++ b/NavisAddinManager/Command/AddInManagerCommand.cs @@ -42,3 +42,12 @@ public override int Action(params string[] parameters) } } +public class Test : IAddinCommand +{ + public override int Action(params string[] parameters) + { + MessageBox.Show("Hello World"); + return 0; + } +} + diff --git a/NavisAddinManager/NavisAddinManager.csproj b/NavisAddinManager/NavisAddinManager.csproj index 39b05f6..9cd3789 100644 --- a/NavisAddinManager/NavisAddinManager.csproj +++ b/NavisAddinManager/NavisAddinManager.csproj @@ -110,10 +110,6 @@ Designer - - - - powershell -NoProfile -ExecutionPolicy Unrestricted $(SolutionDir)NavisAddinManager\postbuild.ps1 -Configuration '$(Configuration)' -SolutionDir '$(SolutionDir)' -ProjectDir '$(ProjectDir)' -Version '$(NavisVersion)'