Showing results for 
Search instead for 
Do you mean 
Reply

How to execute DLL or Journal using NX Knowledge fusion

1. I have a Journal & Dll File

2. I have to execute this DLL or Journal using NX Knowledge fusion

3. Please guide,Thanks in advance

5 REPLIES

Re: How to execute DLL or Journal using NX Knowledge fusion

Abhishek --

 

For a C DLL, you'll use the cfunc() function in Knowledge Fusion.

 

For .NET or Java, you'll use the nx_ja_session_execute() function in KF.

 

For a Journal, you'll use the %ug_executeNxJournal() function in KF.

 

Hope that helps!

Taylor Anderson
NX Product Manager, Knowledge Reuse and NX Design
Tel: +1 (602) 441-0683
taylor.anderson@siemens.com

Re: How to execute DLL or Journal using NX Knowledge fusion

I have tried nx_ja_session_execute() to call my .NET dll but I am getting "exception while invoking method in managed code" message. Can any one help me in this.

Re: How to execute DLL or Journal using NX Knowledge fusion

Without seeing your code and implementation of the nx_ja_session_execute line in kf it's difficult to advise. Below is the implamentation of the command I've used.

 

nx_ja_session_execute( $custom_path + "checkdegenedges.dll", "MyVbFunctions", "checkdegenedges", {highlight:} )

 

{highlight:}  is a boolean varaibale set earlier in the kf code to control something in the nxopen script

 

This launches the compiled nxopen file checkdegenedges.dll

The structure of it looks like this:

 


Module MyVbFunctions Sub Main() 'this sub allows the sub-routine to be initialized outside of checkmate for debugging purposes Dim new_array() As Tag = checkdegenedges(True) End Sub Public Function checkdegenedges(ByVal highlight As Boolean) As Tag() 'do stuff in your function end function

Not sure if that helps

Re: How to execute Python script using NX Knowledge fusion

Could you please let me know how to execute a python script using KF.

Re: How to execute DLL or Journal using NX Knowledge fusion

Taylor (or anyone)
Is ug_executeNxJournal() deprecated?

I can't find it in the NX10 Docs (or the NX10 API docs)

I can't find a reference to it in uganswer.

 

I found the docs for "Knowledge Fusion calls ***", but it's not there

 

Thanks...Ken

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled