Extending Unigraphics NX using C# (II) Using the Wizard

27 Jan

UgNX provides app wizard for developers to program the extension addins or plugins. The problem is that these wizards are not always successfully installed to the system. For instance, on my Windows 7 professional system, I failed to see them at the expected places.

To use the NX Open C# wizard:

Step 1.

Choose File→New→Project menu item to activate the New dialog box.

Step 2.

Under Project Types, select Visual C#.

Step 3.

From the Templates list. Select NX5_VCS  wizard or NX7 Open C# Wizard.

Step 4.

In Project Name, enter a project name. By default this becomes the name portion of the program being built. For example, a project named MyNXOpenApp produces either a MyNXOpenApp.dll or MyNXOpenApp.exe. You can override this later, if necessary.

Step 5.

Click OK and follow the on-screen instructions to create your C# project.

Compile and run. That is it.

if you fail to find the wizard in your,

  • Copy all files from the NX kit to the corresponding directories of the local Visual Studio installation.  The kit is located in:


To determine the correct location of the Visual Studio installation, look at the productdir registry key for each language. The key for C and C++ is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\version#\Setup\VC/productdir (where version# would be 7.1, 8.0, etc). For other languages replace the VC with either VB or VC#.

  • For each wizard, copy any files and/or folders under each subdirectory from the kit to the Visual Studio installation. This example is for the C language so substitute VB or VC# and the appropriate subdirectory for the other languages. Copy:

    %UGII_BASE_DIR%\UGOPEN\vs_files\VC\VCWizards\ to C:/program Files\Microsoft Visual Studio 8\VC\VCWizards\

    and %UGII_BASE_DIR%\UGOPEN\vs_files\VC\vcprojects\  to C:/program Files\Microsoft Visual Studio 8\VC\vcprojects\

Repeat for each language.


Posted by on January 27, 2010 in CAD, Dotnet/C#


5 responses to “Extending Unigraphics NX using C# (II) Using the Wizard

  1. srihari

    December 22, 2011 at 6:49 pm

    Hi, thankyou for the information in the blog.

    I am trying to write custom programs in Unigraphics, through VC++ 2008. I am planning to write a C program. I am unable to copy wizard files into the programme folder (since this is office system and I do not have enough access). Can you please suggest me the alternate solution.


  2. xinyustudio

    December 23, 2011 at 9:42 am

    You at least should have power user privilege otherwise you cannot debug the program and use the wizard. I would suggest you contact your IT manager to troubleshoot this.

  3. srihari

    December 27, 2011 at 2:36 pm

    Hi xiny,

    Now I have got an access to VC folder. I have been copied all the files in VS_folder to VC folder as mentioned above. But, when I start a new project in VC2008, neither the template nor the project is showing up. Please help.


  4. xinyustudio

    December 27, 2011 at 3:20 pm

    Cannot figure out the reason, it worked for me pretty well.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: