iLogic rule for bending certain thickness

iLogic rule for bending certain thickness

Anonymous
Not applicable
565 Views
5 Replies
Message 1 of 6

iLogic rule for bending certain thickness

Anonymous
Not applicable

Hello,

 

Can someone help me with an iLogic rule for creating a certain thickness for bending

 

it should look like this

 

up to a sheet thickness of 4mm , bend = strength

from 4mm up to 8mm bend=thickness *1,5

from 8mm up to 12mm bend =thickness*2

from 12mm up to 22mm bend=thickness*3

 

Thank a lot 

0 Likes
566 Views
5 Replies
Replies (5)
Message 2 of 6

bradeneuropeArthur
Mentor
Mentor

Could you please explain a bit further because I don't understand exact what you need?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 3 of 6

Anonymous
Not applicable
 

Well,

In inventor, you can only enter the bending radius value and you have to change it manually for each radius value. 

I want to create a rule to set the bend radius based on the thickness. ( I know it can be performed by setting up the Sheet metal Style but I want a rule for it 🙂

 

If ThisApplication.ActiveDocumentType = DocumentTypeEnum.kPartDocumentObject And _
ThisApplication.ActiveDocument.PropertySets.Item("Design Tracking Properties").Item("Document SubType Name").Value = "Sheet Metal" Then
Dim oCD As SheetMetalComponentDefinition = ThisApplication.ActiveDocument.ComponentDefinition
If oCD.Thickness.Value <= 4 Then
oCD.BendRadius.Expression = "Thickness"
End If
If oCD.Thickness.Value <= 8 Then
oCD.BendRadius.Expression = "Thickness * 1.5"
End If
If oCD.Thickness.Value <= 12 Then
oCD.BendRadius.Expression = "Thickness * 2"
End If
End if

 

0 Likes
Message 4 of 6

bradeneuropeArthur
Mentor
Mentor

 

If ThisApplication.ActiveDocumentType = DocumentTypeEnum.kPartDocumentObject And ThisApplication.ActiveDocument.PropertySets.Item("Design Tracking Properties").Item("Document SubType Name").Value = "Sheet Metal" Then
	Dim oCD As SheetMetalComponentDefinition = ThisApplication.ActiveDocument.ComponentDefinition
	
	If oCD.Thickness.Value <= 4 Then
	oCD.SheetMetalStyles.Item(1).BendRadius ="Thickness"
	End If'	
	
If oCD.Thickness.Value <= 8 Then
oCD.SheetMetalStyles.Item(1).BendRadius ="Thickness * 1.5"
End If
If oCD.Thickness.Value <= 12 Then
oCD.SheetMetalStyles.Item(1).BendRadius ="Thickness * 2"
End If
End If

 

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 5 of 6

bradeneuropeArthur
Mentor
Mentor

Modified.

because the value is in Cm and needs to be multiplied by 10

 

If ThisApplication.ActiveDocumentType = DocumentTypeEnum.kPartDocumentObject And ThisApplication.ActiveDocument.PropertySets.Item("Design Tracking Properties").Item("Document SubType Name").Value = "Sheet Metal" Then
	Dim oCD As SheetMetalComponentDefinition = ThisApplication.ActiveDocument.ComponentDefinition
	
	oCD.SheetMetalStyles.Item(1).BendRadius ="Thickness"
	If oCD.Thickness.Value * 10 <= 4 Then
	oCD.SheetMetalStyles.Item(1).BendRadius ="Thickness"
	End If'	
	
If oCD.Thickness.Value * 10 <= 8 Then
oCD.SheetMetalStyles.Item(1).BendRadius ="Thickness * 1.5"
End If
If oCD.Thickness.Value * 10 <= 12 Then
oCD.SheetMetalStyles.Item(1).BendRadius ="Thickness * 2"
End If
End If

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 6 of 6

Anonymous
Not applicable

i have the following error when i run the rule

danielparaschiv93_0-1628177020139.png

Maybe I have to modify something also in editor sheet metal style? 

 

0 Likes