Message 1 of 3
partnumber does not update when placing Ipart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Experimenting with some iLogic here. Mainly testing what the possibilities are.
I have a rectangular plate with parameters for width, height, thickness and fillet radius.
I would like the part number to update in 2 different formats.
when fillet radius is 0:
rectangular plate - <width>x<height>x<thickness>
when fillet>0
rectangular plate - <width>x<height>x<thickness> - 4xR<fillet>
I have made following iLogic rule:
Dim WidthVal As Double = Parameter("width") Dim HeightVal As Double = Parameter("height") Dim FilletVal As Double = Parameter("fillet") Dim ThickVal As Double = Parameter("thick") Dim PN1 As String = "rectangular plate - " & WidthVal & "x" & HeightVal & "x" & ThickVal Dim PN2 As String = "rectangular plate - " & WidthVal & "x" & HeightVal & "x" & ThickVal & " - 4xR" & FilletVal If FilletVal = 0 Then Feature.IsActive("corner round1") = False iProperties.Value("Project", "Part Number") = PN1 Else Feature.IsActive("corner round1") = True iProperties.Value("Project", "Part Number") = PN2 End If
This all works within the part, but when I place it as an iPart it does not update the part number.
I have triggers on: 'anny model parameter change' and 'any user parameter change'
Is what I am trying to achieve possible with iparts?
I tried edit via spreadsheet but these values are never recalculated.