Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

iLogic Intellisense for VS Code

ahmed.hagi
Enthusiast

iLogic Intellisense for VS Code

ahmed.hagi
Enthusiast
Enthusiast

Hello All,

We are planning to introduce version control for our iLogic code, and to avoid having to copy and paste code into rules, we are thinking of opting for external rules. Is it possible to get inventor API intellisense for VS Code?

0 Likes
Reply
657 Views
6 Replies
Replies (6)

vpeuvion
Advocate
Advocate

Hello, this may help you:

Jelte de Jong (hjalte.nl)

Vincent.

0 Likes

ahmed.hagi
Enthusiast
Enthusiast

Hello! Thanks for the speedy response.

I was just looking at that blog post!

 

We currently do use Visual Studio for debugging, but not for writing. This looks like a copy/paste situation. I would prefer to not have to do that 😞

If there is a way to setup a project in VS to include the inventor API and provide the intellisense on the external rules, that would be great.

0 Likes

vpeuvion
Advocate
Advocate

You can add the autodesk.inventor.interop reference to your project and call it in your code.

vpeuvion_0-1675676516956.png

Vincent.

0 Likes

ahmed.hagi
Enthusiast
Enthusiast

Is there any way to have it recognize parameters that are defined in models?

0 Likes

vpeuvion
Advocate
Advocate

ILogic has some predefined things that make it easier to access settings and the way to access them may be different in VS. You can help yourself with this link which includes several examples.

https://modthemachine.typepad.com/my_weblog/2013/02/inventor-api-training-lesson-2.html

vpeuvion_0-1675683410207.png

Vincent.

0 Likes

ahmed.hagi
Enthusiast
Enthusiast

Hi Vincent, we are working with the API, the issue is that I am trying to introduce version control with git. As you know iLogic is embedded usually (unless external rules), it would be useful if there was a language server available for visual studio code, so iLogic could be modified in an external editor. But I guess this is not on the radar, we are stuck with the built in editor.

0 Likes