How do I set up a rule in the IPL file, to replace one property value with another?
I.e. I would like a rule that detects if 'Part Number' starts with 'X', and if so, it will drop that value and instead use the value from 'Alt Part Number'.
Part lister s not designed to make this kind of on the fly change.
Why do you say that?
For piped parts we can rename part numbers on the fly:
<Rule attribute="Part Number"> <Logic regexp="(.*)\|(.*)" value="\1" /></Rule>
We can also change property values based on other property values on the fly:
<Rule attribute="Mounted" name="Part List Exclude"> <Logic regexp="NM" value="True"/> </Rule>
What I'm asking is very close to these examples.The only difference is that I would like to get the value from another property.
Where you find information or documentation about this syntax?
I haven't found a proper reference, but there is some info in "Xpedition Designer and Xpedition System Designer Reference Manual" and "Xpedition Designer User's Guide".There are also some examples here on communities and Support Center.
When the pre-processor was created it was simply to support the substitution of values for a single property or support piped part numbers, not to conditionally substitute one property's value with that of another property. If I find a method that does work I will post back.
Retrieving data ...