NX secondary development-C#-Environment Settings-VS2019 and NX1926 "Unhandled exception: system.DllNotFoundException: Unable to load DLL "libuginit": Cannot find the specified program"

When using vs2019 for the secondary development of NX1934, store the contents of the vs_files folder under the NX1934 file in the corresponding folder of vs2019, and use the NX template for secondary development to generate the exe program with parameter startup. The above error occurs when calling:

Unhandled exception: system.DllNotFoundException: Unable to load DLL "libuginit": The specified program could not be found.

 

This is because the path of the dll stored by NX1934 has changed. The libuginit.dll is stored in \Siemens\NX1926\NXBIN\managed. When using the template, "libuginit.dll" cannot be found.

 

Solution:

In My Computer -> Properties -> Environment Variables -> Path, add:

\\ Siemens \\ NX1926 \\ NXBIN。

 

 

 

 

Guess you like

Origin blog.csdn.net/yang19861007/article/details/111771074