×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Customizing Toolbar, different Buttons but same dll

Customizing Toolbar, different Buttons but same dll

Customizing Toolbar, different Buttons but same dll

(OP)
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

RE: Customizing Toolbar, different Buttons but same dll

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

RE: Customizing Toolbar, different Buttons but same dll

Then it should work with a .tbr file as well.

John R. Baker, P.E.
Product 'Evangelist'
Product Engineering Software
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
UG/NX Museum:   http://www.plmworld.org/p/cm/ld/fid=209

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Customizing Toolbar, different Buttons but same dll

(OP)
phillpd,

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

Thanks

RE: Customizing Toolbar, different Buttons but same dll

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

RE: Customizing Toolbar, different Buttons but same dll

(OP)
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

RE: Customizing Toolbar, different Buttons but same dll

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

NX 6.0.5.3 (NX 8 Testing)
Windows 7 64

RE: Customizing Toolbar, different Buttons but same dll

(OP)

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.  

RE: Customizing Toolbar, different Buttons but same dll

It's an argument inside the code

NX 6.0.5.3 (NX 8 Testing)
Windows 7 64

RE: Customizing Toolbar, different Buttons but same dll

(OP)
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!   

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources