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;
And
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
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
CODE -->
ACTION $SITE_PREF_PATH\ForEngineDocsCGM\ForEngineDocs_Plotcgm.dll("Ai")RE: Arguments in Ribbon Bar
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
NX 9.0.3.4
NX 11.0.1.11 (Testing)
Windows 7 (Windows 8.1 Tablet)
RE: Arguments in Ribbon Bar
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
CODE --> file
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
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