cancel
Showing results for 
Search instead for 
Did you mean: 

Mass set cutting parameters on similar operations?

Legend
Legend

Idk about you guys but I run into this a lot. I have 20 tool paths all using the same "Finish Wall". just different geometry. I run the part on the machine and decide I want to change a parameter of the cut. Well now I have to go in and change the setting on all 20 paths.

 

For instance, right now I have a keyway operation on 4 sides of the part, each side has 4 tool paths to rough and finish. I need to add a slow down into the corner. Now I have to open all 16 paths and change the slow down.

 

What about just highlighting all the paths, set the parameter, and it applies to all of them?

 

NX11.0.1
4 REPLIES

Re: Mass set cutting parameters on similar operations?

Legend
Legend
Tried to use a Journal but it didn't work. Maybe I'm doing something wrong?
NX11.0.1

Re: Mass set cutting parameters on similar operations?

Esteemed Contributor
Esteemed Contributor

In %UGII_ROOT_DIR%\UGOPEN\SampleNXOpenApplications\.NET\CAM there are some examples that cycle all ops (looks for ones with "cycleAll") or selected ops (look for "selected") to set some parameter.

If you can figure out which params you want to set, you should be able to adapt these.

Note some operation types (probably legacy PTP ops) may not be supported.

And if you have different types of operations (e.g. planar mill vs surface contouring) the parameter may be different.

 

 

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Mass set cutting parameters on similar operations?

Esteemed Contributor
Esteemed Contributor

Also note...You can select all the operations you want to change --> Edit

And NX will show the first operation's edit dialog.  When you "OK" it, NX will show the 2nd operation's dialog, etc. 

Not as nice as a journal, but it saves double clicking (or right-click -> edit) for each operation

Ken Akerboom Sr CAx Systems Engr, Moog, Inc.
Production: NX10.0.3.5 MP5 + patch/TC11.2
I'd rather be e-steemed than e-diseaseled


Re: Mass set cutting parameters on similar operations?

Phenom
Phenom

I use something like this to get all selected ops to iterate through some change (this one was a finish turning one) in a journal:

 

Option Strict Off
Imports System
Imports NXOpen

Module NXJournal
Sub Main

Dim theSession As Session = Session.GetSession()
Dim workPart As Part = theSession.Parts.Work

Dim displayPart As Part = theSession.Parts.Display

Dim theUI As UI = UI.GetUI()

Dim finishTurningBuilder1 As CAM.FinishTurningBuilder
Dim nXObject1 As NXObject

Dim numSelected As Integer
Dim i As Integer

numSelected = theUI.SelectionManager.GetNumSelectedObjects

For i = 0 to numSelected-1

  ' Make the change

nXObject1 = finishTurningBuilder1.Commit()

finishTurningBuilder1.Destroy()

Next

End Sub
End Module

 

NX10.03
Windows 7 Pro

Learn online





Solution Information