添加项目文件。
This commit is contained in:
29
ShrlAlgo.MsAddIns/MsAddIn.cs
Normal file
29
ShrlAlgo.MsAddIns/MsAddIn.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
using Bentley.MstnPlatformNET;
|
||||
|
||||
namespace ShrlAlgo.MsAddIns
|
||||
{
|
||||
[AddIn(MdlTaskID = nameof(MsAddIns))]
|
||||
public class MsAddIns : AddIn
|
||||
{
|
||||
public static MsAddIns AddIn { get; set; } = null;
|
||||
//程序集加载时,第一个被执行的函数
|
||||
public MsAddIns(IntPtr mdlDescriptor) : base(mdlDescriptor)
|
||||
{
|
||||
AddIn = this;
|
||||
}
|
||||
//构造函数执行完,第一个被执行的函数
|
||||
protected override int Run(string[] commandLine)
|
||||
{
|
||||
//Assembly.LoadFile("C:\\Program Files\\Bentley\\MicroStation 2024\\MicroStation\\Mdlapps\\Ncalc.dll");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user