Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic Intellisense for VS Code

6 REPLIES 6
Reply
Message 1 of 7
ahmed.hagi
531 Views, 6 Replies

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

iLogic Intellisense for VS Code

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?

Labels (3)
6 REPLIES 6
Message 2 of 7
vpeuvion
in reply to: ahmed.hagi

vpeuvion
Advocate
Advocate

Hello, this may help you:

Jelte de Jong (hjalte.nl)

Vincent.

0 Likes

Hello, this may help you:

Jelte de Jong (hjalte.nl)

Vincent.

Message 3 of 7
ahmed.hagi
in reply to: vpeuvion

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

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.

Message 4 of 7
vpeuvion
in reply to: ahmed.hagi

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

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

vpeuvion_0-1675676516956.png

Vincent.

Message 5 of 7
ahmed.hagi
in reply to: vpeuvion

ahmed.hagi
Enthusiast
Enthusiast

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

0 Likes

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

Message 6 of 7
vpeuvion
in reply to: ahmed.hagi

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

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.

Message 7 of 7
ahmed.hagi
in reply to: vpeuvion

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

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report