I've found solution, set the target to be x64 instead of Any CPU
I tried to follow the SNAP_Getting_Started_V11.pdf tutorial on the Winform (page 19, 20)
1. I made all the references (NXOpen.dll, NXOpen.UF.dll, NXOpen.Utilities.dll, NXOpenUI.dll, and Snap.dll) from NXBIN\managed
2. I added the follow code on my form to create a sphere when a button1 is clicked.
Imports Snap, Snap.Create Public Class SnapWinForm Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
InfoWindow.WriteLine("Creating a sphere")
Sphere(0, 0, 0, 10)
Here the error message
An unhandled exception of type 'System.DllNotFoundException' occurred in NXOpen.Utilities.dll Additional information: Unable to load DLL 'libuginit': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
Any suggestion to fix this problem? I am using VB.NET on VS 2015 with NX11
Solved! Go to Solution.