通过程序加载了其他插件
[MyAmFunctionAtt(nameof(测试功能), nameof(加载其他插件))]
public void 加载其他插件(WindowManager wm)
{
var addInM = Aveva.ApplicationFramework.AddinManager.Instance;
var ui = new MarUi();
try
{
var addin = addInM.Load(@"D:\NetDriveDir\OneDrive\MyCodeHub\AvevaMarineCSProject20230428\MyAMTest\MyAMTest\bin\Debug\XXXXTools.dll");
addin.Start();
ui.MessageConfirm($"加载 {addin.Name} 成功....");
}
catch (Exception ex)
{
ui.MessageConfirm(ex.StackTrace);
}
finally
{
ui.Dispose();
}
}
执行命令前
执行命令行后
标签:插件,addin,C#,AVEVA,ui,var,加载,AddIn From: https://www.cnblogs.com/NanShengBlogs/p/17773395.html