Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Tool number in dialog

Builder
Builder

Hello, how to add tool number to search dialog?

2019-04-10 09_05_19-Window.jpg

 

I know, is necessary modify file dbc_tool_ascii.def, RSET alias. What is the alias for tool number?

2019-04-10 09_09_25-Window.jpg

3 REPLIES 3

Re: Tool number in dialog

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

There is no OOTB alias for the tool number, so you have to add your own to the dbc_tool_ascii.def file.

 

So the first thing you need to find out is what is the DB_ID for tool number in the tool_database.dat file.  If you look at the start of the Milling Tools definition, you will see that this is "TLNUM":

 

Tool Number DB_ID.jpg

 

With this information, you can now define your own, custom alias in the dbc_tool_ascii.def file.  You can place your alias definition near the top of the file (to make it easy to find) - something like this:

 

#    OPTIONS and OPTIONS_IDS can be ommitted, If they are specified
#    then a corresponding option menu is created in the Search Criteria Dialog
#    instead of a simple search field.
#############################################################################

# Your Custom Alias for Tool Number
#
        DB_ALIAS  ToolNo
        {
           DB_ID        TLNUM
           DB_ID_TYPE   s
           DIALOG_NAME "Tool No."
           RSET_NAME   "Tool No."
        }


#    The DB_ALIAS of the library reference. It is mandatory that this DB_ALIAS
#    appears in the alias list
#
        DB_ALIAS  libref
        {
           DB_ID        LIBRF
           DB_ID_TYPE   s

Then it's simply a matter of adding your "ToolNo" alias to the Tool Class "DIALOG" and "RSET" lines where you want this field to appear.

 

Regards,

~Ulas

Re: Tool number in dialog

Legend
Legend
Where the DIALOG section refers to the actual search dialog. RSET refers to the search result als shown in your image.

Just as additional information for other readers.
Best wishes,
Joachim

In production NX 12.0.1.7 MP4
In testing NX 12.0.2.9 MP5

Re: Tool number in dialog

Builder
Builder

Thank you, its work.

Learn online





Solution Information