Creating a Parameter Equation with iLogic

Creating a Parameter Equation with iLogic

jtylerbc
Mentor Mentor
1,176 Views
2 Replies
Message 1 of 3

Creating a Parameter Equation with iLogic

jtylerbc
Mentor
Mentor

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.

0 Likes
Accepted solutions (1)
1,177 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution

Parameter("THK_Fractional") = "Thickness"

0 Likes
Message 3 of 3

jtylerbc
Mentor
Mentor

As suspected - not difficult, but was missing something.  Thanks.

0 Likes