From 3f62d18e4361cd1d7a49c126765d95b2ad9c8246 Mon Sep 17 00:00:00 2001 From: chr <chr@mailcom> Date: 星期二, 04 三月 2025 08:42:07 +0800 Subject: [PATCH] 优化插件; --- PdmSwPlugin.PropertySetting/Panel/StandardModulePanel.xaml.cs | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/PdmSwPlugin.PropertySetting/Panel/StandardModulePanel.xaml.cs b/PdmSwPlugin.PropertySetting/Panel/StandardModulePanel.xaml.cs index 8393031..9b5b9d1 100644 --- a/PdmSwPlugin.PropertySetting/Panel/StandardModulePanel.xaml.cs +++ b/PdmSwPlugin.PropertySetting/Panel/StandardModulePanel.xaml.cs @@ -7,6 +7,7 @@ using PdmSwPlugin.Common.Util; using PdmSwPlugin.PropertySetting.Interface; using PdmSwPlugin.PropertySetting.Panel.Attr; +using PdmSwPlugin.PropertySetting.Util; using SolidWorks.Interop.sldworks; using SolidWorks.Interop.swconst; @@ -39,6 +40,11 @@ } } #endregion + + static StandardModulePanel() + { + PropHolder.Register(typeof(StandardModulePanel)); + } public event PanelPropertyChanged UpdateProperty; @@ -95,7 +101,7 @@ [PropertySettingAttr(Name = NameConstant.weight, NeedSave = false)] public string weight { - get => CustomPropertyUtil.GetMass(doc); + get => CustomPropertyUtil.GetMassBySWDM(doc); set { RaiseAndSetIfChanged(ref _weight, value); -- Gitblit v1.9.1