- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm frequently running into a this Late Binding issue as I continue to expand my use of iLogic and the API and it would appear I'm missing a workflow process somewhere. Sorry for the wall of text as it's a complex issue, do me the favor of actually reading this is you'd like to assist.
The Late Binding error is typically an issue with failing to declare a variable before using it (ie. Dim VARIABLE as Double)
I am confident I have all my variables declared properly, but am including the current state of the files & coding for anyone wanting to review and point out where I have not. My error is occurring when changing a Parameter value, running the rule a second time results in success, further evidence that the error appears to be a timing/synchronization issue of processed data.
As I understand iLogic, and the API, they operate at different speeds and independently of each other.
While the rule is running, any changes to Parameter values do not keep up with rule and are updated sometime after the rule has completed its run; depending upon the processes used.
For example:
Parameter("MyParameter") = "New Value" (as shown in the Snippet menu in iLogic) will not visually change the parameter value to the user unless the rule is run a 2nd time, but does update the value within ilogic immediately. However,
MyParameter = "NewValue" will immediately update the Parameter for the user (and Forms), but does not update the value for use within iLogic while the rule is still running.
As such, I make it a habit to set a new variable name with a current Parameter value, make modifications to that new variable, and then update Parameter value for the user in a follow up command. Example:
Dim NewParam as String = MyParameter
NewParam = "Something New"
MyParameter = NewParam
This process usually works for me, but I am still running into occasions where I don't feel this is taking care of all my data sync issues, especially when working with multiple files in an assembly; which is where I am with this issue.
So I'm reaching for a little help or confirmation that there's a data sync management issue being unmet here and a better way to workflow this to ensure successful data handling. If that isn't the issue, then perhaps you have the experience to point out what it is I'm missing in this current workflow.
Thanks in advance for any assist.
Inventor 2021.3.1

Solved! Go to Solution.