Units keep changing when using iLogic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to create a rule that updates the weight of a Content Center pipe as the length changes.
Few explanations.
So the CC part uses L and PL (not sure why both but I just copied the existing to make sure it works smooth with Tube & Pipe). I'm not updating the custom iProperty via the Family Table because it only works for Standard CC Parts. I'm using a custom iProperty rather than a parameter because that's how everything else reads. It was setup a long time ago and I'm working w/ what we have established.
When I want to input a Custom CC part PL is in ft, L is in inches. The part's document settings are in inches. The family table for "L" and "PL" both have units set to feet. So I set everything to ft and put the following iLogic rule.
iProperties.Value("Custom","WEIGHT TOTAL")=PL*iProperties.Value("Custom","WEIGHT UNIT")
However the part keeps changing L to inches. And the Rule seems almost arbitrarily multiplying by feet sometimes and Inches others. I've no clue what's going on or how to fix it. When I replace the family template the document settings won't update. I get no consistency. Sometimes the value will be 504 and others 2.3. All depending on whether it want to read inches or feet.