Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
jtylerbc
1076 Views, 2 Replies

Creating a Parameter Equation with iLogic

I'm working on an iLogic rule that sets up various parameters and iProperties based on whether or not the part is Sheet Metal.  I have the bulk of it working, but have stumbled across something that I didn't think would be all that difficult, but apparently don't know how to do.

 

I have a parameter called "THK_Fractional", which needs to be set either equal to the "Thickness" parameter or set to zero, based on some If/Then logic.  I actually need the parameter set equal (as though through the Parameters dialog box).  Transferring the value from one parameter to the other using iLogic code isn't going to work well here, because the rule is basically a setup tool rather than something that runs repeatedly.

 

I tried what I thought was obvious, but apparently it's not that simple.

 

THK_Fractional = "=Thickness"

 

This gives an error because of converting a string to a double. 

 

Can someone show how to do this?  It doesn't seem like it should be difficult, but clearly I'm missing something.