×
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

Arguments in Ribbon Bar

Arguments in Ribbon Bar

Arguments in Ribbon Bar

(OP)
Hello all,

Has anybody ever tried to pass an argument to a dll started from a ribbon (or toolbar)?

I tried;

CODE --> Ribbon

ACTION Start $SITE_PREF_PATH\ForEngineDocsCGM\ForEngineDocs_Plotcgm.dll Ai 

And

CODE --> Ribbon

ACTION "Start $SITE_PREF_PATH\ForEngineDocsCGM\ForEngineDocs_Plotcgm.dll Ai" 

But I get the message from NX telling me; "Unknown Action Type"

To elaborate, when I run user fucntion from NX I can pass an argument as show below...can I do this directly on the Action line of the ribbon (toolbar)?




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

Building new PLM environment from Scratch using NX11 / TC11

RE: Arguments in Ribbon Bar

Try

CODE -->

ACTION $SITE_PREF_PATH\ForEngineDocsCGM\ForEngineDocs_Plotcgm.dll("Ai") 

RE: Arguments in Ribbon Bar

(OP)
Hi Petulf,

tried it but now I'm getting "None of the actions for specified button were registered"

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

Building new PLM environment from Scratch using NX11 / TC11

RE: Arguments in Ribbon Bar

It should be possible by making use of the BUTTON name

NX 9.0.3.4
NX 11.0.1.11 (Testing)
Windows 7 (Windows 8.1 Tablet)

RE: Arguments in Ribbon Bar

NutAce, weird this is an excerpt from one of our .tbr files

BEGIN_GROUP BETA_MODELING
GROUP_STYLE DEFAULT
LABEL Modeling

BUTTON EDIT_THREAD
LABEL Edit M-Thread
MESSAGE Changes size of a reuse thread
BITMAP ${NX_CUSTOM_LIB}\ToolBars\bitmaps\edit_thread.bmp
ACTION ${NX_CUSTOM_LIB}\scripts\edit_thread.vb

BUTTON EDIT_G_THREAD
LABEL Edit GHT G-Thread
MESSAGE Changes size of a GHT reuse G-thread
BITMAP ${NX_CUSTOM_LIB}\ToolBars\bitmaps\edit_g_thread.bmp
ACTION ${NX_CUSTOM_LIB}\scripts\edit_thread.vb("bspp")

END_GROUP

RE: Arguments in Ribbon Bar

(OP)
I understood that is actually only possible using a Menu file...so I created one as below.

CODE --> file

VERSION 120

EDIT UG_GATEWAY_MAIN_MENUBAR

TOP_MENU
	CASCADE_BUTTON DOCUMENTATION_PREPARATIONS
	LABEL Documentation Preparations
	
END_OF_TOP_MENU

MENU DOCUMENTATION_PREPARATIONS

	BUTTON ILLUSTRATOR_CGM
	LABEL  Illustrator CGM Export
	BITMAP $SITE_PREF_PATH\ForIllustratorCGM\Startup\Plotcgm4Illustrator.bmp
	ACTIONS Start $SITE_PREF_PATH\ForEngineDocsCGM\ForEngineDocs_Plotcgm.dll(Ai)

END_OF_MENU 

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

Building new PLM environment from Scratch using NX11 / TC11

RE: Arguments in Ribbon Bar

(OP)

Quote (petulf)

NutAce, weird this is an excerpt from one of our .tbr files

Hi Petulf, it works...had to remove the start from the begining of the line... :)
Thanks!

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

Building new PLM environment from Scratch using NX11 / TC11

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