Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Bend Radius Ilogic code

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
mjohnson
317 Views, 3 Replies

Bend Radius Ilogic code

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.

3 REPLIES 3
Message 2 of 4
pcrawley
in reply to: mjohnson

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. 

Peter
Message 3 of 4
pcrawley
in reply to: mjohnson

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

 

Peter
Message 4 of 4
johnsonshiue
in reply to: pcrawley

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!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report