Message 1 of 6
Custom property updated with wrong value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I'm stumped why this does not work. I want to populate a custom iProperty with the paint weight in kg based on the area of the model:
iProperties.Value("Custom", "LakkVektkg") = (Ceiling(iProperties.Area * 0.125e-6 kg/mm^2*1000)/1000) & " kg"
When I run this in a separate external rule directly, it works as it should. The paint weight reads for example: "0,129 kg" (without the "). The strange behaviour exists when I either call the external rule from another rule or put the same code inside another external rule. Then the value becomes: "0,000 kg". However, when I use a messagebox to show the value of the iProperty during running the code, it shows "0,129 kg".
I tested one more thing and running the external rule "Overflate" with an event trigger, gives the same result of 0,000 kg.