Intellesense Not Working Within Functions

Intellesense Not Working Within Functions

C_Haines_ENG
Collaborator Collaborator
316 Views
4 Replies
Message 1 of 5

Intellesense Not Working Within Functions

C_Haines_ENG
Collaborator
Collaborator

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.

C_Haines_ENG_0-1728479259932.png

 

Would speed me up alot of I didnt have to re-declare variable types and then comment them out when I run the rule.

 

 

 

0 Likes
Accepted solutions (1)
317 Views
4 Replies
Replies (4)
Message 2 of 5

Curtis_Waguespack
Consultant
Consultant

@C_Haines_ENG 

 

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

 

Curtis_Waguespack_0-1728479848171.png

 

 

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.

 

Curtis_Waguespack_1-1728479930038.png

 

 

EESignature

Message 3 of 5

C_Haines_ENG
Collaborator
Collaborator

My screenshot was just to show what intellesense was. 

 

C_Haines_ENG_0-1728480247255.png

 

Like many things over the past couple weeks, I suspect this issue is because I'm on Inventor 2019. 

Message 4 of 5

C_Haines_ENG
Collaborator
Collaborator

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. 

Message 5 of 5

Curtis_Waguespack
Consultant
Consultant
Accepted solution

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.

 

 

EESignature

0 Likes