WasResolved from Get6 (CustomPropertyManager)
Posted: Fri Jan 26, 2024 4:32 am
How does Solidworks software decide which expression could be evaluated and which could not?
We are talking about the function Get6(Get5) of reading user properties through the CustomPropertyManager interface
value = instance.Get6(FieldName, UseCached, ValOut, ResolvedValOut, WasResolved, LinkToProperty)
value: swCustomInfoGetResult_ResolvedValue = 2 = (WasResolved=True) [Resolved value was returned]
I made the configuration from which I read the properties inactive and not rebuilt, and if UseCached = False the configuration is rebuilt and I get good mass values, and if True, then I get zeros in the calculated mass values. But "Was Resolved" always the True. How do you even get a False?
We are talking about the function Get6(Get5) of reading user properties through the CustomPropertyManager interface
value = instance.Get6(FieldName, UseCached, ValOut, ResolvedValOut, WasResolved, LinkToProperty)
value: swCustomInfoGetResult_ResolvedValue = 2 = (WasResolved=True) [Resolved value was returned]
I made the configuration from which I read the properties inactive and not rebuilt, and if UseCached = False the configuration is rebuilt and I get good mass values, and if True, then I get zeros in the calculated mass values. But "Was Resolved" always the True. How do you even get a False?
Code: Select all
From general properties (not configuration)
Property: val1 / Value: "SW-Mass@Part.SLDPRT" / Resolved Value: 174.47 / Was Resolved: True
---
Property: val2 / Value: "SW-Mass" / Resolved Value: 174.47 / Was Resolved: True
---
Property: val3 / Value: "SW-Masss" / Resolved Value: "SW-Masss" / Was Resolved: True
---
Property: val4 / Value: "SW-Wasistdas" / Resolved Value: "SW-Wasistdas" / Was Resolved: True
---
Property: val5 / Value: "TT@mm" / Resolved Value: "TT@mm" / Was Resolved: True
---
Property: val6 / Value: "D567@Sk976" / Resolved Value: "D567@Sk976" / Was Resolved: True
From configuration properties
Configuration Property: val1c / Value: "SW-Mass@@ConfName@Part.SLDPRT" / Resolved Value: 174.47 / Was Resolved: True
---
Configuration Property: val2c / Value: "SW-Mass@Part.SLDPRT" / Resolved Value: 174.47 / Was Resolved: True
---
Configuration Property: val3c / Value: "SW-Mass" / Resolved Value: 174.47 / Was Resolved: True
---
Configuration Property: val4c / Value: "SW-Masss" / Resolved Value: "SW-Masss" / Was Resolved: True
---
Configuration Property: val5c / Value: "TT@mm" / Resolved Value: "TT@mm" / Was Resolved: True
---
Configuration Property: val6c / Value: "D567@Sk976" / Resolved Value: "D567@Sk976" / Was Resolved: True
---