Message 1 of 11
iLogic Custom iProperty not updating
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I've made a rule in an assembly that updates a custom property within a part. Depending on the parameter "RESTMAAT" one of the parts custom property is updated. The first time when I change a parameter in the assembly the parameter gets updated, but the property doesn't update. If I run the rule again then the property also updates.
What do I have to change in my rule so the property updates the first time the rule is run?
If RESTMAAT <= 50 Then
If RESTMAAT = 0 Then
ZAAGMAAT = 0
Else
ZAAGMAAT = Floor(23 + Sqrt(2) * RESTMAAT) + 0.99
End If
iProperties.Value("BA50rs", "Custom", "ISAH-Memo") = FormatAsFraction(ZAAGMAAT, 2)
ElseIf RESTMAAT > 50 Then
If RESTMAAT = 0 Then
ZAAGMAAT = 0
Else
ZAAGMAAT = Floor(8 + Sqrt(2) * RESTMAAT) + 0.99
End If
iProperties.Value("BA70rs", "Custom", "ISAH-Memo") = FormatAsFraction(ZAAGMAAT, 2)
End If
InventorVb.DocumentUpdate()
Check out my ideas: https://autode.sk/2TKe6LH