Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Customizing Toolbar, different Buttons but same dll

Status
Not open for further replies.

nxplm

Computer
Nov 3, 2011
11
HI All,

I want to create a customize Toolbar (.tbr) I would like to know if it is possible to create 2 buttons that they call the same DLL but each one calls different functions (callbacks).

I just can do it creating the actions in separately DLLs. But for the purpose of my project is not useful.

I will appreciate it!!

Thank your very much
 
Replies continue below

Recommended for you

I haven't tried it with a TBR file, but it works with a MEN file.

NX 6.0.5.3 (NX 8 Testing)
Windows 7 64
 
phillpd,

have You tried without creating a "Application_Button" and executing callbacks?

Thanks
 
Here's the section I use ...

MENU KMT_GKAD!4X
BUTTON KMT_GKAD_NAV
LABEL Navigator...
BITMAP gkad4xnav.bmp
ACTIONS MkNavigator.dll

BUTTON KMT_GKAD_PREFS
LABEL Preferences...
ACTIONS MkNavigator.dll

BUTTON KMT_GKAD_PREP_REL
LABEL Hide Tools...
ACTIONS MkNavigator.dll
END_OF_MENU

NX 6.0.5.3 (NX 8 Testing)
Windows 7 64
 
Thanks phillpd,

I knew that solution, but my question goes beyond this point.

How do you differentiate in your own application which button has been pressed?

Thank you again for your comments,

Daniel
 
The text of the button name is the first argument to UFUSER

NX 6.0.5.3 (NX 8 Testing)
Windows 7 64
 

Is it possible to add some parameters to the application? I can not find the solution.

For example:

----------------------------------------------------------
VERSION 120
EDIT UG_GATEWAY_MAIN_MENUBAR

MENU UG_APPLICATION

BUTTON wag_ENG_CONVERT

ACTIONS "start "\"C:\Program Files\Siemens\NX 8.0\UGII\managed\Toolbar.exe" ipAdress""

END_OF_MENU
----------------------------------------------------------

Like I posted it does not work...

Thank you again for your help.
 
It's an argument inside the code

NX 6.0.5.3 (NX 8 Testing)
Windows 7 64
 
I have seen that it is easier and possible using NX Open C++ with UFUSR;

But I am developing applications in C#,

Is there a way to wrap C++ entry function in C#??

Thank you very much again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor