From 43a0207d207390abdeeb3ab9155eebf03edd7b1a Mon Sep 17 00:00:00 2001
From: chr <chr@mailcom>
Date: 星期一, 21 四月 2025 09:28:01 +0800
Subject: [PATCH] 优化;

---
 PdmSwPlugin.PropertySetting/Panel/JgjModulePanel.xaml.cs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/PdmSwPlugin.PropertySetting/Panel/JgjModulePanel.xaml.cs b/PdmSwPlugin.PropertySetting/Panel/JgjModulePanel.xaml.cs
index a69952b..c4ffaf5 100644
--- a/PdmSwPlugin.PropertySetting/Panel/JgjModulePanel.xaml.cs
+++ b/PdmSwPlugin.PropertySetting/Panel/JgjModulePanel.xaml.cs
@@ -9,6 +9,7 @@
 using PdmSwPlugin.PropertySetting.Entity;
 using PdmSwPlugin.PropertySetting.Interface;
 using PdmSwPlugin.PropertySetting.Panel.Attr;
+using PdmSwPlugin.PropertySetting.Util;
 using SolidWorks.Interop.sldworks;
 using SolidWorks.Interop.swconst;
 
@@ -51,6 +52,11 @@
             }
         }
         #endregion
+
+        static JgjModulePanel()
+        {
+            PropHolder.Register(typeof(JgjModulePanel));
+        }
 
         public event PanelPropertyChanged UpdateProperty;
 
@@ -221,7 +227,7 @@
         [PropertySettingAttr(Name = NameConstant.weight, NeedSave = false)]
         public string weight
         {
-            get => CustomPropertyUtil.GetMass(doc);
+            get => CustomPropertyUtil.GetMassBySWDM(doc);
             set
             {
                 ccc(ref _weight, value);

--
Gitblit v1.9.1