Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Invoke a DLL through a button from PTS

Status
Not open for further replies.

S1M0n_Da

Automotive
Jun 20, 2018
3
Hi there,

I try to invoke a DLL through a button on a template made in PTS (Product Template Studio). However PTS wants some information called External libraray (I guess there should be the path guiding to my dll?), Class name (there is no class in my dll, visual studio just gives me a module, a sub called main() and the unload function), Method name (this should be the filename right?) and Parameteres (I really can't imagine what Siemens wants to know? The arguments of the sub??).

Maybe someone can give me a hint or solve this problem for me. The NX help isn't helpful (or useful) at all! :(

See the screenshot in the attachment.


Using NX12 and Win7.
 
 https://files.engineering.com/getfile.aspx?folder=e6aac147-2fa0-49f4-9e95-03468656462a&file=gs_22_000004.jpg
Replies continue below

Recommended for you

Hello,

try with this config

External library = full path to dll
Class name = Myclass
Method name = MyMethod
Parameters = "empty"

Gelson Z. Nicoletto
Eng. Supervisor
Mould Desing
Brazil
 
Thank you for your response!

This config didn't work. I always get the error message box "Exception while invoking method in managed code",the Path to the DLL and "Function name: MyMethod".

Any further ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor