- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Morning everyone,
I am having an issue with iLogic where if I create a function within a rule, and define the items I am sending to that rule, intellesense no longer works. Does anyone know if this is intentional or not?
For those who dont know what intellesense is its the "autofill" feature of ilogic.
Would speed me up alot of I didnt have to re-declare variable types and then comment them out when I run the rule.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm not sure I understand what you're seeing, your screen shot shows it working?...
but typically we need to declare the parameters of a function at the top of the function, as shown highlighted here
We can declare variables below the Main Sub like this though, so that they are shared across the entire rule class , so that might help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
My screenshot was just to show what intellesense was.
Like many things over the past couple weeks, I suspect this issue is because I'm on Inventor 2019.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
And while declaring the variables under the main sub is a good idea, I am but a lazy programmer and have used the same variables names for everything even when I dont want them to be shared across functions.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
ah... 2019 is likely the culprit... I don't recall the specifics but they made a lot of improvements to the iLogic editor in the Inventor 2021 and 2022 releases, such as line numbers which I notice your screen capture is missing, so I'm pretty sure it is a limitation of 2019.