添加项目文件。

This commit is contained in:
GG Z
2026-02-28 21:01:57 +08:00
parent 9fe4e5a9aa
commit 7a229067cc
175 changed files with 18060 additions and 0 deletions

57
MSDevTool/Commands.cs Normal file
View File

@@ -0,0 +1,57 @@
using System.Linq;
using System.Text;
using Bentley.DgnPlatformNET;
using Mstn.Toolkit.External;
namespace MSDevTool
{
public class Commands
{
public static void Lookup(string unparsed)
{
UserPickTool.Setup(e => true, e =>
{
for (uint i = 0; i < e.GetCount(); i++)
{
var elem = e.GetEntry(i);
var classProps = SnoopHelpers.GetClassPropDictionary(elem).OrderBy(p => p.PropName).ToList();
ElementPropertiesGetter getter = new ElementPropertiesGetter(elem);
var dictClass1 = SnoopHelpers.GetClassPropDictionary(getter).OrderBy(p => p.PropName);
classProps.AddRange(dictClass1);
var ecPropsOrdered = SnoopHelpers.GetECProperties(elem).OrderBy(p => p.PropName);
ElementInfoViewModel viewModel = new ElementInfoViewModel();
foreach (var item in classProps)
{
viewModel.ClassPropValues.Add(item);
}
foreach (var item in ecPropsOrdered)
{
viewModel.ECPropValues.Add(item);
}
ElementInfoView view = new(viewModel);
view.Show();
}
});
}
public static void Selection(string unparsed)
{
SelectByElementId selectByElementId = new()
{
Topmost = true
};
selectByElementId.Show();
}
}
}