Showing results for 
Search instead for 
Do you mean 
Reply

Create custom command in .tbr .men .rtb etc file for favorite .fav command

You can create a custom command in .tbr .men .rtb etc from a journal .vb file file as per below:

 

BUTTON MY_CMD_1

LABEL My Command

BITMAP ${MY_ENV_VAR}\MY_CMD.bmp

ACTION ${MY_ENV_VAR}\MY_CMD.vb

 

Can you do the same with favorites (.fav files)?

 

Regards,

Clayton McPherson
TC 10.1, NX 9.0.3.4 MP7
2 REPLIES

Re: Create custom command in .tbr .men .rtb etc file for favorite .fav command

Found example in the OOTB .men file

 

  BUTTON UG_INFO_SIMPLE_GEOMETRIC_DISTANCE PRIMARY=UG_INFO_GEOMETRIC_DISTANCE,FAVORITE="SimpleDistance"
  LABEL &Simple Distance...
  TOOLBAR_LABEL Simple Distance
  MESSAGE Calculates the distance between two objects.
  SYNONYMS measurement
  HELP UGS:: DlogUI::UICompMeasureDistance
  BITMAP distance
  ACTIONS STANDARD

Regards,

Clayton McPherson
TC 10.1, NX 9.0.3.4 MP7

Re: Create custom command in .tbr .men .rtb etc file for favorite .fav command

Clayton,

No, favorites are specific to the existing NX dialog and essentially capture a particular state of that existing dialog. The favorite is like dialog memory for just the given dialog.

 

HTH, Joe