Hi,
I need an Ilogic code for the sheet metal bend radius parameters below. Is this something anyone could help me with? Should be pretty simple but I have no code experience.
Thanks in advance.
Default punch = .25 rad. Use for material under 3/8" thickness.
Use 1/2" rad. if material thickness is 3/8" or thicker.
Solved! Go to Solution.
Solved by johnsonshiue. Go to Solution.
I'm no coder either, but that's the beauty of iLogic - it's really just "engineer speak". (And because I'm lazy, I let it do the math of 3 divided by 8 )
Try this:
If Thickness <= 3 / 8 Then BendRadius = 0.25 Else If Thickness > 3 / 8 Then BendRadius = 0.5 End If
If you place the rule into your Sheet Metal template, you do not need to worry about "triggers" because the rule will automatically update the BendRaduis value if you change the Thickness.
Oops. My >= was in the wrong place. Try this:
If Thickness < 3 / 8 Then BendRadius = 0.25 'Use .25 rad for material under 3/8" thickness Else If Thickness >= 3 / 8 BendRadius = 0.5 'Use 1/2" rad. if material thickness is 3/8" or thicker End If
Hi Peter and Matt,
This is a very interesting way of managing Sheet Metal parameters. I think it works well when there is one Sheet Metal rule. If there are multiple Sheet Metal rules, it is better to allow the rules to drive parameters. Using an iLogic rule can override the Sheet Metal rules and it can lead to confusing behaviors.
Many thanks!
Can't find what you're looking for? Ask the community or share your knowledge.