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[""];