Cancel
Showing results for 
Search instead for 
Did you mean: 

MKE Tool Criteria

Valued Contributor
Valued Contributor

Hello,

 

I would like to define in the MKE tool citeria for a T-Cutter.

The Attributes for the "Lower Radius" and "Up Radius" cannot be defined in the MKE:

snip_20171013111301.png

 

For the t-cutter in NX these attributes can be selected and a value can be set - but not in the MKE.

snip_20171013111418.png

 

Is there an other expression in MKE to define those attributes ?  Thank you

NX 11.0.1.11
9 REPLIES

Re: MKE Tool Criteria

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

 

You can use any cutting tool parameter from the database which is part of the RSET list for a tool class. In this case, the R1 and R2 parameters are available in the database but they are not included in the RSET. These are the steps needed to enhance this:

 

1. Edit your ~\MACH\resource\library\tool\ascii\dbc_tool_ascii.def, locate the section for the CLASS T_SLOT_MILL_NON_INDEXABLE and add the two additional parameters (CornerRadius1 and CornerRadius2) to both the DIALOG and the RSET lists.

 

TCutter_definition_new.png

 

 

 

2. Re-start NX and check that your change is working as expected. Search for a T-Slot Mill and check that both your Search Dialog and your result list (RSET) contain the two additional parameters

TCutter_search_criteria_new.png

 

 

TCutter_RSET_new.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3. Finally, start the MKE and use "Open and Update" on your machining knowledge file to refresh the (in this case tool) customization. Double check that the two additional parameters are available:

TCutter_MKE.png

 

 

 

 

 

 

 

 

 

 

 

 

 

Tom van 't Erve

NX CAM Development

Re: MKE Tool Criteria

Valued Contributor
Valued Contributor

Hi,

thank you for you reply.

 

Point 1 and 2 I have done succesfully, but I have a problem with the point 3.

 

When I open and update my machining_knowledge.xml, I select the "cam_general.dat", which is in the configuration folder, which is in the same outsourced recource folder like my machining knowledge.xml.

 

snip_20171018090156.png

 

But the tool attributes are still not there:

 

snip_20171018090455.png

 

Now I have added the expressions CornerRadius1 and CornerRadius2 to the file "dbc_tool_ascii.def" which is located

in the standard recource folder and updated then the my outsourced XML-File with the configuration folder which is located in the standard recource folder and it works.

 

snip_20171018093038.png

 

Is it not possible to just use my outsourced recource folder which includes the changes and which

I can use for the open and update ?

 

Thank you Smiley Happy

NX 11.0.1.11

Re: MKE Tool Criteria

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

You need to start MKE with the same environment you use for NX.

If you start NX through a batch file that sets the correct environment, you must also use a batch file to start MKE in the same environment.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: MKE Tool Criteria

Valued Contributor
Valued Contributor
Hallo,

Thank you, do you have a example for the
Relevant Expressions do to that?
I just have made a Batch file for NX not for MKE.

This would help me a lot.
NX 11.0.1.11

Re: MKE Tool Criteria

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Use a copy of your NX script and replace:

"%UGII_BASE_DIR%\NXBIN\ugraf.exe" -nx

with:

"%UGII_BASE_DIR%\MACH\machining_knowledge_editor\bin\MkEditor.exe" -mode admin

This line also enables administrative mode to be able to see the feature recognition rule source code for taught features.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: MKE Tool Criteria

Valued Contributor
Valued Contributor

Hello,

 

for starting NX I have the following batch code, I have outsourced the MACH folder and

set a new directory to the resource folder.

@echo off

rem *** Script to execute release kit version of NX 11x for
rem ***    evaluation only during EMF CAM Forum
rem ***
rem *** replace the following 2 variable with appropriate directory
rem ***    for your system
set UGII_BASE_DIR=C:\"Program Files"\Siemens\"NX 11.0"
set UGII_ROOT_DIR=%UGII_BASE_DIR%\UGII

set UGII_TEMP_DIR=C:\DATA
set UGII_LANG=english
set TOLMOD_HOME=C:\"Program Files"\Siemens\"NX 11.0"\UGALLIANCE\site

set UGII_CAM_RESOURCE_DIR=C:\Users\Desktop\NXBatch\MACH\resource\

rem *** replace the following 1 variable with appropriate directory
rem ***    for your system where Multitool icon is copied

start %UGII_BASE_DIR%\ugii\ugraf -nx

rem *** End of Script ***

 

Here is the new code for starting the MKE:

@echo off

rem *** Script to execute release kit version of NX 11x for
rem ***    evaluation only during EMF CAM Forum
rem ***
rem *** replace the following 2 variable with appropriate directory
rem ***    for your system
set UGII_BASE_DIR=C:\"Program Files"\Siemens\"NX 11.0"
set UGII_ROOT_DIR=%UGII_BASE_DIR%\UGII

set UGII_TEMP_DIR=C:\DATA
set UGII_LANG=english
set TOLMOD_HOME=C:\"Program Files"\Siemens\"NX 11.0"\UGALLIANCE\site

set UGII_CAM_RESOURCE_DIR=C:\Users\Desktop\NXBatch\MACH\resource\

rem *** replace the following 1 variable with appropriate directory
rem ***    for your system where Multitool icon is copied

start "%UGII_BASE_DIR%\MACH\machining_knowledge_editor\bin\MkEditor.exe" -mode admin

rem *** End of Script ***

 

I have replaced

start %UGII_BASE_DIR%\ugii\ugraf -nx

with:

start "%UGII_BASE_DIR%\MACH\machining_knowledge_editor\bin\MkEditor.exe" -mode admin

 

But I get the error that "Files\Siemens\NX" could not be find. I think there is an error with the directories, but

I dont know what...

 

NX 11.0.1.11

Re: MKE Tool Criteria

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Do not litter the paths with quotes, the following is bogus:

set UGII_BASE_DIR=C:\"Program Files"\Siemens\"NX 11.0"

Instead use the regular way and enclose the entire path in quotes where it is used.

set UGII_BASE_DIR=C:\Program Files\Siemens\NX 11.0

"%UGII_BASE_DIR%\UGII\ugraf.exe"

This is how batch scripting with paths containing spaces works. It is simpler and works in any case.

Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: MKE Tool Criteria

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

Starting with NX 11.0 it is recommended to use NXBIN instead of UGII for the NX executables. There are only links contained in UGII, which will vanish with the upcoming releases.

Your batch file for NX 11.0 and higher should best look like:

@echo off

rem *** Script to execute release kit version of NX 11x for
rem ***    evaluation only during EMF CAM Forum
rem ***
rem *** replace the following 2 variable with appropriate directory
rem ***    for your system
set UGII_BASE_DIR=C:\Program Files\Siemens\NX 11.0

rem *** starting with NX 11.0 the following variable is no longer used by NX
set UGII_ROOT_DIR=%UGII_BASE_DIR%\NXBIN

set UGII_TEMP_DIR=C:\DATA
set UGII_LANG=english
set TOLMOD_HOME=%UGII_BASE_DIR%\UGALLIANCE\site

set UGII_CAM_RESOURCE_DIR=C:\Users\Desktop\NXBatch\MACH\resource\

rem *** replace the following 1 variable with appropriate directory
rem ***    for your system where Multitool icon is copied

start "%UGII_BASE_DIR%\ugii\ugraf" -nx

rem *** End of Script ***
Stefan Pendl, Systemmanager CAx, HAIDLMAIR GmbH
Production: NX10.0.3, VERICUT 8.1, FBM, MRL 3.1.7 | TcUA 10.1 MP7 Patch 0 (10.1.7.0) | TcVis 11.4
Development: C (ITK), .NET, Tcl/Tk Testing: NX12.0 | AWC 3.4 Preparing: NX12.0

Employees of the customers, together we are strong Smiley Wink
How to Get the Most from Your Signature in the Community
NX Customization - Best Practice Guide

Re: MKE Tool Criteria

Valued Contributor
Valued Contributor

Thank you for that tip, I will change that Smiley Happy

NX 11.0.1.11

Learn online





Solution Information