Update When Done

Update When Done

ASchlaack
Collaborator Collaborator
1,091 Views
1 Reply
Message 1 of 2

Update When Done

ASchlaack
Collaborator
Collaborator

I add this update code to most of my rules:

 

iLogicVb.UpdateWhenDone = True

Is it better to have it before or after the actual code? Example:

If ....Then
....
Else
....
End If

iLogicVb.UpdateWhenDone = True

'OR

iLogicVb.UpdateWhenDone = True

If ....Then
....
Else
....
End If

This question may sound dumb but what does this snippet actual do? Should everything update after the code is ran anyway?

Thanks,
Aaron Schlaack
---------------------------------------------------------------------------------
Autodesk Inventor 2018
Dell Windows 8.1 64 bit Intel(R) Xeon(R) @ 3.50GHz 32GB Ram
0 Likes
Accepted solutions (1)
1,092 Views
1 Reply
Reply (1)
Message 2 of 2

xiaodong_liang
Autodesk Support
Autodesk Support
Accepted solution

Hi Aaron,

 

The help of iLogic explains:

UpdateWhenDone

Updates the document that the rule is in, after the rule (and any rule it triggers) finishes running. This update is the same as clicking the Update button in the user interface.

 

normally, it locates in the last line.