chr
2024-08-20 b62a2f5ad99995ec01da71b9f93be7284023171b
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[""];