Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

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

NX9 - Ribbon Customization 1

Status
Not open for further replies.

phillpd

Mechanical
Joined
Oct 19, 2006
Messages
780
Location
GB
I have prepared a custom RTB file and placed it in "Profiles/All".

I've also created a custom GRB/GLY file in "Profiles/UG_APP_MODELING".

All works well.

However, I want the above mentioned GRB/GLY to also be available in Gateway (not Drafting, or Manufacturing).

Do I simply copy them to "Profiles/UG_APP_GATEWAY", or is there another solution ?



NX 6.0.5.3
NX 9.0.0.19
Windows 7 64
 

Phillpd,

The "profiles\all" or the "profiles\reference" directories can be used in combination with the .dtx file in the respective application directories to allow several applications share (or ignore) one definition file.

If the tbr/gly/grb/etc. is added to the "all" directory it is available (and by default added) to all applications. The application specific dtx file can be used to allow applications to explicitly opt out of using the file from the "all" directory by putting the desired file name in the <ExcludeFromAll> portion of the dtx files.

If the tbr/gly/grb/etc. is added to the "profiles\reference" directory it can be optionally included by specific applications. The application specific dtx file(s) can be used to allow application(s) to explicitly opt in and use the file from the "reference" directory by putting the desired file name in the <Reference> portion of the dtx files.

Example: (from %UGII_BASE_DIR%\ugii\menus\profiles\ug_app_gateway\ug_app_gateway.dtx)

...
<ExcludeFromAll>
<ActionList name="rbn_curves.rtb"/>
<ActionList name="rbn_curves.grb"/>
<ActionList name="rbn_curve_derived.grb"/>
<ActionList name="rbn_curve_edit.grb"/>
<ActionList name="rbn_curves_more.gly"/>
<ActionList name="rbn_lines_and_arcs.grb"/>
<ActionList name="rbn_lines_and_arcs.gly"/>
</ExcludeFromAll>
<Reference>
<ActionList name="rbn_ref_backstage_left.abr"/>
<ActionList name="rbn_ref_qat.abr"/>
<ActionList name="rbn_ref_system_bar.abr"/>
<ActionList name="rbn_ref_top_border_bar.abr"/>
<ActionList name="rbn_file_tab_help_cascade.csb"/>
</Reference>
...

For your case, move the GRB/GLY files from "all" to "reference" and then add the entries to the files to the <Reference> portion of the gateway and the modeling dtx files.

HTH,

Joe
 
Joe,

Excellent, I now have this working.

In the end, I decided to have the GRB/GLY available in ALL, then just "exclude" from Drafting.

Do I have to copy the entire UG_APP_DRAFTING.dtx (from the install folder) to my custom folder, adding to the exclude section, or can I create a simple DTX with just that one section ?

NX 6.0.5.3
NX 9.0.0.19
Windows 7 64
 
Alternately, can I just copy the GRB/GLY files into the UG_APP_xxx folders that I want to have them available for ?

NX 6.0.5.3
NX 9.0.0.19
Windows 7 64
 
wow this looks like fun, can't wait..

Proud Member of the Reality-Based Community..

[green]To the Toolmaker, your nice little cartoon drawing of your glass looks cool, but your solid model sucks. Do you want me to fix it, or are you going to take all week to get it back to me so I can get some work done?[/green]
 
I created UG_APP_DRAFTING.dtx as per ...

<?xml version="1.0" encoding="UTF-8" ?>
<!--

-->

<NX_PROFILES>
<Profile name ="UG_APP_DRAFTING">
<ExcludeFromAll>
<ActionList name="kmt_gkad.grb"/>
</ExcludeFromAll>
</Profile>
</NX_PROFILES>

And placed it into my custom "\Application\Profiles\UG_APP_DRAFTING" folder. All "appears" to work as expected.

NX 6.0.5.3
NX 9.0.0.19
Windows 7 64
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top