Sure, can you get onto the NX doc? If you can then look up "conditional expressions"
Maybe do a search in here for those two words too.
You will be able to write an "If-Then" statement for those.
Using IF statements, your set of expressions would look like:
p3=1
p4=IF (p3==1) THEN (7) ELSE ( IF (p3==2) THEN (3) ELSE (0))
p5=IF (p3==1) THEN (9) ELSE ( IF (p3==2) THEN (12) ELSE (0))
And starting with NX 8.0 you now have another and perhaps more elegant option and that is the new 'nth' expression, in which your set of expressions would look like:
p3=1
p4=nth(p3,{7,3})
p5=nth(p3,{9,12})
In either case, changing p3 from '1' to '2' would change p4 from '7' to '3' and p5 from '9' to '12'.
John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA