Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Gallery Labels in grb files

Status
Not open for further replies.

NutAce

Mechanical
Apr 22, 2010
1,192
Hello All,

Having some issues with the creation of Galleries in grb files.

When I add a Gallery with Drag&Drop in a new Ribbon Tab it shows like below in NX
Each Gallery has it's own label (name)
Drag-and-Drop_ysbxv2.png


Because I want to distribute this new RibbonTab to all users I decided to create an GRB file (called by a rtb file)

The problem is that I don't get the Gallery label to show like it is in above sample, it only shows the title of the GRB file. What am I missing?

GRB_ux1qnh.png


Code:
!  Unigraphics Drawing Frame Toolbar
!
! 
!
TITLE   2D Only Drawing Tools

VERSION 170

DOCK TOP

BEGIN_GALLERY  BASIC_CURVE
COLUMN_IN_RIBBON 2
COLUMN_IN_POPUP 2
LABEL Basic Curve
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT

	BUTTON UG_CURVE_BASIC_CURVES
	LABEL Basic Curves
	
	BUTTON UG_CURVE_ASSO_LINE
	LABEL Line
	
	BUTTON UG_CURVE_ASSO_ARC
	LABEL Arc/Circle
	
	BUTTON UG_CURVE_RECTANGLE
	LABEL Rectangle
	
	BUTTON UG_CURVE_POLYGON
	LABEL Polygon
	
	BUTTON UG_CURVE_ELLIPSE
	LABEL Ellipse

	BUTTON UG_CURVE_PARABOLA
	LABEL Parabola
	
	BUTTON UG_CURVE_STUDIO_SPLINE
	LABEL Studio Spline
	
	BUTTON UG_CURVE_OFFSET
	LABEL Offset Curve
	
END_GALLERY

SEPARATOR

BEGIN_GALLERY  ARC_LINES
COLUMN_IN_RIBBON 2
COLUMN_IN_POPUP 2
LABEL Arc and Lines
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PP
	LABEL Line Point - Point

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PX
	LABEL Line Point - XYZ

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PAR
	LABEL Line Point - Parallel

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PER
	LABEL Line Point - Perpendicular

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PT
	LABEL Line Point - Tangent

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_TT
	LABEL Line Tangent - Tangent

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PN
	LABEL Line Point - Normal

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_NP
	LABEL Line Normal - Point

	BUTTON UG_ASSOCIATIVE_CURVE_UNBOUNDED_OPTION
	LABEL Line Unbound 

	BUTTON UG_ASSOCIATIVE_CURVE_ARC_PPP
	LABEL Arc Point - Point - Point

	BUTTON UG_ASSOCIATIVE_CURVE_ARC_PPT
	LABEL Arc Point - Point - Tangent

	BUTTON UG_ASSOCIATIVE_CURVE_ARC_TTT
	LABEL Arc Tangent - Tangent - Tangent

	BUTTON UG_ASSOCIATIVE_CURVE_ARC_TTR
	LABEL Arc Tangent - Tangent - Radius
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_PPP
	LABEL Circle Point - Point - Point
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_PPT
	LABEL Circle Point - Point - Tangent

	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_TTT
	LABEL Circle Tangent - Tangent - Tangent
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_TTR
	LABEL Circle Tangent - Tangent - Radius
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_PP
	LABEL Circle Center - Point
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_PR
	LABEL Circle Center - Radius
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_PT
	LABEL Circle Center - Tangent
	
	BUTTON UG_ASSOCIATIVE_CURVE_OPTION
	LABEL Associative

END_GALLERY

Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2

Building new PLM environment from Scratch using NX12 / TC11
 
Replies continue below

Recommended for you

Hi Ronald,

I don't know this by heart like some, so I typically find what's default in NX that I want to duplicate and then copy it and change the appropriate items as needed.

If we take a look at the Default NX View Tab, notice in the Operation group there is a More pulldown gallery. It's set to be collapsed by default. The code snippet below comes from the rbn_view_operation.grb file OOTB for the More gallery, prior to all the BUTTON callouts:

Code:
BEGIN_GALLERY NX_RBN_VIEW_ORIENTATION_MORE_GALLERY
GALLERY_STYLE SMALL_IMAGE_AND_TEXT
LABEL More
CONTEXT_TITLE More (Orientation)
COLLAPSED TRUE
COLUMN_IN_RIBBON 1
COLUMN_IN_POPUP 2
BITMAP orient_view

I see you're missing the CONTEXT TITLE - that should put the gallery titles directly under each gallery. You've also got the icon & text showing but I would expect the users should be able to change that via Customize. The columns are also different, I believe; the drag & drop has 5, not sure if that needs to be looked at or not. Bitmap only takes effect when COLLAPSED is set to TRUE - what you want is set to FALSE, I would expect based on your drag & drop image.

Here's the first part - maybe you could take it from there. Note that I put the Basic Curves icon name in there in case your users want the gallery collapsed:
Code:
!  Unigraphics Drawing Frame Toolbar
!
! 
!
TITLE   2D Only Drawing Tools

VERSION 170

DOCK TOP

BEGIN_GALLERY BASIC_CURVE
GALLERY_STYLE MEDIUM_IMAGE_AND_TEXT
LABEL Basic Curve
CONTEXT_TITLE Basic Curve
COLLAPSED FALSE
COLUMN_IN_RIBBON 5
COLUMN_IN_POPUP 2
BITMAP basiccurves

	BUTTON UG_CURVE_BASIC_CURVES
	LABEL Basic Curves
	
	BUTTON UG_CURVE_ASSO_LINE
	LABEL Line
	
	BUTTON UG_CURVE_ASSO_ARC
	LABEL Arc/Circle
	
	BUTTON UG_CURVE_RECTANGLE
	LABEL Rectangle
	
	BUTTON UG_CURVE_POLYGON
	LABEL Polygon
	
	BUTTON UG_CURVE_ELLIPSE
	LABEL Ellipse

	BUTTON UG_CURVE_PARABOLA
	LABEL Parabola
	
	BUTTON UG_CURVE_STUDIO_SPLINE
	LABEL Studio Spline
	
	BUTTON UG_CURVE_OFFSET
	LABEL Offset Curve
	
END_GALLERY

SEPARATOR

Hope this helps!
 
okay.

First solution provided by Xwheelguy didn't bring the result as desired. Still didn't see the Gallery names.
As I am suspecting the names below the galleries are actual group names I tried to make individual grb files for each gallery and call them from the rtb file (started with only one)
Took a closer look at the O.O.T.B ribbons from NX and there the context title isn't used in the galleries so I left those out.
Unfortunately also now there is still an issue. The ribbon is loaded but without contents.
Probably I am missing some stupid small detail but I don't see it.

Code:
!
!  Customer Ribbon Tab
! 
!  This file will create a new customer tab containing three groups and
!  one top level button.
!
TITLE  2D Only Drawing Tools
VERSION 170

GROUP 2D-BasicCurves.grb

Code:
!  Unigraphics Drawing Frame Toolbar
!
! 
!
TITLE   2D Basic curves
VERSION 170

	BEGIN_GALLERY  BASIC_CURVE
	GALLERY_STYLE SMALL_IMAGE
	LABEL Basic Curve
	COLUMN_IN_RIBBON 5
	COLUMN_IN_POPUP 2
	BITMAP basiccurves

		BUTTON UG_CURVE_BASIC_CURVES
		LABEL Basic Curves
		
		BUTTON UG_CURVE_ASSO_LINE
		LABEL Line
		
		BUTTON UG_CURVE_ASSO_ARC
		LABEL Arc/Circle
		
		BUTTON UG_CURVE_RECTANGLE
		LABEL Rectangle
		
		BUTTON UG_CURVE_POLYGON
		LABEL Polygon
		
		BUTTON UG_CURVE_ELLIPSE
		LABEL Ellipse

		BUTTON UG_CURVE_PARABOLA
		LABEL Parabola
		
		BUTTON UG_CURVE_STUDIO_SPLINE
		LABEL Studio Spline
		
		BUTTON UG_CURVE_OFFSET
		LABEL Offset Curve
	END_GALLERY

Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2

Building new PLM environment from Scratch using NX12 / TC11
 
Okay, got it solved.

But it wasn't until I loaded the ribbons in NX11 before I got the error message which told me what was wrong! Apparently NX12 didn't detect it.
The cause was in one of the files there was Title in lower case while it should have been Upper case. <HandPalm>....

I also split-ted the Galleries in dedicated gly files. Don't know if this made any difference.

Code:
!
!  Customer Ribbon Tab
! 
!  This file will create a new customer tab containing three groups and
!  one top level button.
!
TITLE  2D Only Drawing Tools
VERSION 170

GROUP 2D-BasicCurves.grb
GROUP 2D-ArcLines.grb

Code:
!  Unigraphics Drawing Frame Toolbar
!
! 
!
TITLE   2D Basic curves
VERSION 170

	BEGIN_GALLERY  BASIC_CURVE
	GALLERY_STYLE MEDIUM_IMAGE
	LABEL Basic Curve
	COLUMN_IN_RIBBON 5
	COLUMN_IN_POPUP 2
	BITMAP basiccurves
	
		GALLERY 2D-BasicCurves.gly

	END_GALLERY

Code:
!  Unigraphics Drawing Frame Toolbar
!
! 
!
TITLE   2D Arc and Lines
VERSION 170

	BEGIN_GALLERY  ARC_LINES
	GALLERY_STYLE MEDIUM_IMAGE
	LABEL Arc and Lines
	COLUMN_IN_RIBBON 5
	COLUMN_IN_POPUP 2
	BITMAP basiccurves
	
		GALLERY 2D-ArcLines.gly

	END_GALLERY

Code:
!  Unigraphics Drawing Frame Toolbar
!
! 
!
TITLE   2D Basic curves
VERSION 170

	BEGIN_GALLERY  BASIC_CURVE
	GALLERY_STYLE MEDIUM_IMAGE
	LABEL Basic Curve
	COLUMN_IN_RIBBON 5
	COLUMN_IN_POPUP 2
	BITMAP basiccurves
	
		GALLERY 2D-BasicCurves.gly

	END_GALLERY

Code:
!
!  NX BASIC Curve ribbon gallery file
!
! 

TITLE Basic Curve
VERSION 170

CONTEXT_TITLE Arc and Lines

COLUMN_IN_RIBBON 5
COLUMN_IN_POPUP 2

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PP
	LABEL Line Point - Point

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PX
	LABEL Line Point - XYZ

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PAR
	LABEL Line Point - Parallel

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PER
	LABEL Line Point - Perpendicular

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PT
	LABEL Line Point - Tangent

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_TT
	LABEL Line Tangent - Tangent

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_PN
	LABEL Line Point - Normal

	BUTTON UG_ASSOCIATIVE_CURVE_LINE_NP
	LABEL Line Normal - Point

	BUTTON UG_ASSOCIATIVE_CURVE_UNBOUNDED_OPTION
	LABEL Line Unbound 

	BUTTON UG_ASSOCIATIVE_CURVE_ARC_PPP
	LABEL Arc Point - Point - Point

	BUTTON UG_ASSOCIATIVE_CURVE_ARC_PPT
	LABEL Arc Point - Point - Tangent

	BUTTON UG_ASSOCIATIVE_CURVE_ARC_TTT
	LABEL Arc Tangent - Tangent - Tangent

	BUTTON UG_ASSOCIATIVE_CURVE_ARC_TTR
	LABEL Arc Tangent - Tangent - Radius
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_PPP
	LABEL Circle Point - Point - Point
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_PPT
	LABEL Circle Point - Point - Tangent

	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_TTT
	LABEL Circle Tangent - Tangent - Tangent
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_TTR
	LABEL Circle Tangent - Tangent - Radius
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_PP
	LABEL Circle Center - Point
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_PR
	LABEL Circle Center - Radius
	
	BUTTON UG_ASSOCIATIVE_CURVE_CIRCLE_PT
	LABEL Circle Center - Tangent
	
	BUTTON UG_ASSOCIATIVE_CURVE_OPTION
	LABEL Associative




Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2

Building new PLM environment from Scratch using NX12 / TC11
 
Also found out that it's not always enough to switch between applications. (I have toolbars in application folders)
For some changes you really need to restart NX before they have effect.

Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2

Building new PLM environment from Scratch using NX12 / TC11
 
Ronald,

I was going to mention trying the separate .grb files but wasn't sure if that mattered or if you'd already attempted that. I hadn't reviewed this type of customizing deep enough into the .grb or .gly files when I posted - my apologies for leading you a bit astray. I typically have to learn the customization via files by trial and error as the docs are usually rather sloppily thrown together and not specific enough for every situation. I'm also not much of a fan of how they've resolved to deal with the ribbon when it comes to customization via files vs. the interface drag & drop - quite a bit of work and multiple files compared to what .tbr files used to do.

Thanks for following up with your results. It's always nice to have concrete examples which might help someone else in the future.

Tim Flater
NX Designer
NX 11.0.1.11 MP8
GM GPDL 11-A.3.4.2
Win7 Enterprise x64 SP1
Intel Core i7 2.5GHz 16GB RAM
4GB NVIDIA Quadro K3100M
 
Xwheelguy said:
my apologies for leading you a bit astray

No Apologies needed :) I am working following the same principle. Trial and Error

Ronald van den Broek
Senior Application Engineer
Winterthur Gas & Diesel Ltd
NX9 / TC10.1.2

Building new PLM environment from Scratch using NX12 / TC11
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor