Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

While running the .dll application getting error

Status
Not open for further replies.

BarathAlagar

Mechanical
Apr 6, 2021
10
0
0
IN
Hi

When i try to run the .dll Application through File-->Execute-->Nxopen-->selecting my .dll Application
I am getting the below error.(Also attached screen shot)

Error message,
Error in external library. See system log for details
File name:D:\ \bin\x64\Debug\Drawing_Check.dll
Function name: Main


I am not able to fix the issue. Please help me out
I have set my main function like below,

Imports System.Windows
Imports System.Reflection
Imports NXOpen.UF

Module modMain
Private sInputArgument As String = String.Empty
Private appsets As System.Collections.Specialized.NameValueCollection
Private ufs As UFSession = UFSession.GetUFSession()

''' <summary>
''' Main Function
''' </summary>
''' <param name="Args"></param>
Sub Main(Args() As String)
Continues......

Regards
BarathAlagar
 
Replies continue below

Recommended for you

Hi cowski,

Thanks For your support... I found issue that I am not able access the DotNet_Author License and I have resolved it now.

I Have the additional query that what is the difference of creating the NX automation tool as NX Journal or .dll\.exe application ?

Any performance difference? or any thing else?

Regards
BarathAlagar
 
Running the code as a journal has a few disadvantages: you can only reference certain libraries, the code must be compiled in the background before each run, and NX will unload the code after each run.

If you have an author license, you can compile your code to DLL or EXE and the limitations above don't apply. In general, a DLL is run within an interactive session of NX and the EXE is run from the command line when you don't want/need a visible GUI session of NX.

www.nxjournaling.com
 
Status
Not open for further replies.
Back
Top