Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

Error when running a simple VB.Net Form NX 11, SNAP

[ Edited ]

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)
End Sub
End Class

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

1 REPLY
Solution
Solution
Accepted by topic author ulink2rle
‎02-20-2017 12:02 PM

Re: Error when running a simple VB.Net Form NX 11, SNAP

opp - I found the solution, I had to set the target to be x64 instead of Any CPU