cancel
Showing results for 
Search instead for 
Did you mean: 

how to add new group/buttons to existing tab?

Siemens Genius Siemens Genius
Siemens Genius

I have a setup where we have used UGII_DEAFULT_ROLE to push a default appearance of NX to all new NX10 users.

 We have defined the UGII_GROUP_DIR for different departments. ( minor customer defaults differrences)

 Now i would like to provide one of the groups/departments a couple of new buttons in the Modeling home tab.  i.e add a new group to the home tab , file based , not role. NX10.0.3

 

I would like to add the new buttons in the home tab to avoid the 2 extra clicks that a different tab requires.

The new buttons will start .vb journals.

 

I have tried playing around with the rbn_modeling_home.rtb

  and a new corresponding rbn_newbuttons.grb

 i have tried using the UGII_USER_DIR and placed the files either in the \startup  
 or in the \application\profiles\UG_APP_MODELING

 ( no result...)

 

But I am not seeing any of the buttons. - nothing at all actually...

  - Do i need to edit the ug_main.men to enable start of .vb journals ?

 - Will the existing role modifications persist when new buttons are added this way ?

 

How and what do i need to edit to add these buttons ?

 

Regards,

 Tomas

 

9 REPLIES

Re: how to add new group/buttons to existing tab?

In general, the role will overwrite the file based customization. Maybe your file edits are not picked up because a role is in place. What happens if you reset the ribbon? It should return to the file based customization - either the OOTB or yours.

I am not sure where you need to place your files - have you read the documentation on Customizing the NX Interface using files?

There is also a document from NX 9 on file based ribbon customization. 

Mark Rief
Retired Siemens

Re: how to add new group/buttons to existing tab?

Siemens Genius Siemens Genius
Siemens Genius
Thanks Mark, I was hoping you would respond to this.

Maybe i need to "kill" the UGII_DEFAULT_ROLE which is set in our ugii_env....dat by creating the variable = "" locally in the windows control panel. It might be overriding the changes i am trying to test.
I have tried in the session to switch to the default roles , no success.
I have tried to delete the C:\users\tomas\....\Siemens\NX100\ , no success.

In case i want to add a new group to the "rbn_modeling_home.rtb"
Can i then apply the menuscript concept of
"AFTER xxx
my-new-group.grb
end-of-after"

OR
Should i place a complete copy/ edited w added group of the "rbn_modeling_home.rtb"
in the "\application\profiles\UG_APP_MODELING"


Regards,
Tomas

Re: how to add new group/buttons to existing tab?

Esteemed Contributor
Esteemed Contributor

I would go the following route:

  1. create your own file-based ribbon customization
    • include you own ribbon tab
  2. create a custom role
    • place your own tab as the first one in each application you use
  3. use UGII_DEFAULT_ROLE to make sure new users start with your custom role
  4. existing users will just have to select your custom role to be up-to-date

I would never change a file that is shipping with NX, since it is very hard/impossible to override its settings.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: how to add new group/buttons to existing tab?

Siemens Phenom Siemens Phenom
Siemens Phenom

To add buttons to an out of the box ribbon, you need to augment the appropriate .dtx file. I say augment because, as @Stefan_Pendl mentioned, you should never edit the delivered file.

 

If you place the attached files into a <user directory>\application\profiles\UG_APP_MODELING folder, then start NX, you should get a new group containing the new buttons on the home tab. Note that the action item index value in the .dtx file controls the location in the tab. 0 adds this as the leftmost group:

 

 Buttons.png

 

 

Note that the .dtx file only contains additional entries. It is not a copy of the delivered .dtx file.

Re: how to add new group/buttons to existing tab?

Esteemed Contributor
Esteemed Contributor

So the user has to only use a custom DTX file that contains the additional changes?

The NX documentation is not really clear about how to utilize DTX files.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.0, FBM, MRL 3.1.4 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 10.1
Development: VB.NET, Tcl/Tk    Testing: NX12.0

How to Get the Most from Your Signature in the Community

Re: how to add new group/buttons to existing tab?

Siemens Phenom Siemens Phenom
Siemens Phenom

Correct. Only the additions are needed in the local file.

Re: how to add new group/buttons to existing tab?

Siemens Genius Siemens Genius
Siemens Genius

Thanks for your input,

 It turns out that the role changes( in place already) rules out changes done using the .dtx or vice versa.
  Either the role or the dtx, but not "role + dtx"

 -we did not get that to work as expected.

 

I found the reason to why my changes never appeared...

 I had done the fatal (!) error of having the lines in the file in the wrong order...

  i.e :

BUTTON 123

LABEL abc

MESSAGE do abc quickly

RIBBON_STYLE SMALL_IMAGE

ACTION H:\directory\journal_abc.vb

 

The above syntax will not work, neither will the menu appear in NX, nor produce any errors in the NX logfile...

 - ACTION must be before RIBBON_STYLE, then it works as expected....

 ( That took a couple of hours to find..)

 

So , the end of the story, we add a new "gallery" ( which looks like a Dropdown but is a .gly ...) to our own tab. this tab is defined by our own files not modified by the default role. 
 I will have to accept the 2 extra clicks to change to tab.

 

 

 

Regards,

 Tomas

Re: how to add new group/buttons to existing tab?

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello! I tried to repeat that, and got curious results. It does work for NX11, but not for NX10. I can't figure out what the problem is. Could you please advice?

Re: how to add new group/buttons to existing tab?

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
I have the same issue. that the dtx file will work for NX11 but not for NX10

Ruud van den Brand
Pre-sales NX CAD
cards PLM Solutions