Are you using LSCS rather than ICRP (on Job Options form)? If so, you need to load it from a ".vdsinit" file. The expression evaluation is different with LSCS. The other issue might also be that your function doesn't handle family data - there are lots of posts around this on this forum. I think it would need to be (I didn't test this, but this is a pretty standard pattern for calculator functions): procedure(Rs_to_Rp(Zs) cond( (drIsWaveform(Zs) let((Rs Xs) Rs = real(Zs) Xs = imag(Zs) Rs*(1+(Xs/Rs)**2) ) ) (famIsFamily(Zs) famMap('Rs_to_Rp Zs) ) (t error("Rs_to_Rp: can't handle %L\n" Zs) ) ) ) Then you could use the "fx" button in the function panel in the calculator, or "+" button in the expression editor to add the function to the calculator. If you do that, it will then appear in the UI, and you don't need to load it in the .cdsinit/.vdsinit Andrew
↧