05-25-2018 11:01 AM
Hi,
someone use Visual Studio Code as code editor ?
If yes, what I have to configure it to use with NX OPEN API ?
Solved! Go to Solution.
05-25-2018 11:17 AM
See Chapter 3 in the Getting Started Guide:
Also various topics in the NX Open Programmers Guide:
https://docs.plm.automation.siemens.com/tdoc/nx/12/nx_api#uid:xid1162445:index_nxopen_prog_guide
05-25-2018 11:47 AM - edited 05-25-2018 11:48 AM
As your signature includes NX11, I think the info here is more accurate for that version:
For C/C++ you MUST use the indicated version of Visual Studio. For .NET languages, you just have to be using the correct versions of the .NET framework (I have seen references in this forum about using Sharp Develop (?) with NX for VB programming)
Ken
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
05-26-2018 09:22 PM
I've tried using it to edit C# and VB code. It's really the same editor that's used in Visual Studio, so you get good support for "Intellisense". I gave up because I couldn't find a convenient way to compile code. It seems that you have to use command-line incantations to invoke the compiler, which I find troublesome.
VS Code is nice because you don't have to go to the trouble of setting up projects/solutions, but, overall, I still prefer the Visual Studio IDE.
01-07-2019 09:01 AM
Hi
I'm not a programmer, but need to do some simple programming in NX Open (C#), and
would like to use a simple IDE like Visual Studio Code and some kind of IntelliSense.
I'm having a rather hard time finding a guide to make this work. I belive I have everything I need,
but can someone please tell me what files to move where? It seems like you guys replying to
this post have it worked out, and I just can't figgure it out.
Thanks!
01-08-2019 12:28 AM - edited 01-08-2019 02:40 AM
I played with VS Code briefly. But, as I mentioned in my other post, I didn't like the command-line compilation process. Also, you need to add references to the NXOpen DLLs. The process for adding references in VS Code is pretty clunk, as described here.
To avoid these two problems, I would use VS Code for code editing (to get the benefits of Intellisense), but then I'd copy/paste the code into the NX Journal Editor to compile/run it.
Needless to say, this is not a very smooth process, so I went back to using Visual Studio. One of my reasons to try VS Code was to avoid all the fuss of setting up Projects and Solutions, but this is no longer necessary in Visual Studio 2017 and later, as described here.
If you want a lightweight IDE for developing C# code, then you might want to try SharpDevelop.