Eng-Tips is the largest forum for Engineering Professionals on the Internet.

Members share and learn making Eng-Tips Forums the best source of engineering information on the Internet!

  • Congratulations JStephen on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

NX JOURNAL in NX CAM to get the tool diameter and radius of each operation

Status
Not open for further replies.

nxexplorer

Mechanical
Joined
Jun 23, 2010
Messages
84
Location
ID
Hello All,
I need help in nx journal in NX CAM to get the tool diameter and radius of each operation.
I have tried a kind of that journal, but still fail.

Regards,
Maryadi
 
Option Strict Off

Imports NXOpen
Module TOOLDIAMETER
Sub Main()
Dim theSession As Session = Session.GetSession()
Dim workPart As Part = theSession.Parts.Work
Dim setup As CAM.CAMSetup = workPart.CAMSetup

For Each operation As NXOpen.CAM.Operation In setup.Operations
Dim tool As CAM.Tool = operation.GetTool()

If tool IsNot Nothing Then
Dim lw As ListingWindow = theSession.ListingWindow
Dim toolDiameter As Double = tool.Diameter
Console.lw("Operation: {0}, Tool Diameter: {1}", operation.Name, toolDiameter)
End If
Next
End Sub

End Module
'*******************************************************
Just now, I try this this, but still fail.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top