chr
2024-08-12 e9d7a5ef4c17e4804fb988dd193ff7d1fa36d52b
PdmSwPlugin.Common/Util/CustomPropertyUtil.cs
@@ -159,6 +159,21 @@
            return true;
        }
        public static string GetMass(ModelDoc2 doc)
        {
            var cpm = doc?.Extension;
            if (cpm == null)
            {
                return null;
            }
            double[] values = cpm.GetMassProperties2(0, out _, false);
            if (values == null)
            {
                return null;
            }
            return values[5].ToString();
        }
        public static bool SetCustomProperties(ModelDoc2 doc, string key, string value)
        {
            CustomPropertyManager cpm = doc.Extension.CustomPropertyManager[""];