Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations The Obturator on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB.NET error . . . Unable to load DLL 'libpart'

Status
Not open for further replies.

fddd

Mechanical
Jan 19, 2011
4
Hi,

I have created a "code" vb.net from the journal file.

When I run it from Tools Journal Play, it work fine . . .

But if I copy the same code into Visual Studio and start Debugging, I have always
this error message :

Unable to load DLL 'libpart': The specified module could not be found.

The error is located on this line :

Dim theSession As Session = Session.GetSession()

What's wrong ??? Please Help !!!

I tried to compile in command line, but no success ...

Configuration:
NX6.0.5
Win XP SP3
VB Visual Studio express 2005
Framework 2.0
Console Application

Thank a lot
 
Replies continue below

Recommended for you

hi! I am new to nxOpen...i HAVE NX7.5 AND vs 2008. When I try to run a prog (vb or c#), I get the following error:
in case of an external app:
"
Unhandled Exception: System.DllNotFoundException: Unable to load DLL 'libpart':
The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at NXOpen.Session.SessionForceLoad()
at NXOpen.Session.GetSession()
at ConsoleApplication1.EX_Curve_CreateArc.Main() in C:\........\EX_Curve_
CreateArc.vb:line 28
Press any key to continue . . .
"
and for a dll project I get
"error in external library".....function : ufusr

I know that for c++(I think) you have to implement ufusr...but why am I getting this error?
there is no doc about how to set the path in case of the first error...anyone has a clue?....this is becoming rocket science for me............:(
1 second ago
 
Sandman420,

Since you mentioned an external app, my guess is that you need to run it in the NX7.5 environment (via the NX7.5 Command Line).

Marc
NX Software Developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor