Showing results for 
Search instead for 
Did you mean: 

Machine Library: retrieve paremeters

Valued Contributor
Valued Contributor

Hello, I have a question about the library machines.
The library has a field recording machine rigidity: RIGID.

Where a stored parameters about machine after install it?

Need a custom change rigidity parameters in CAMSetup and apply it for a feedrate calculate


Re: Machine Library: retrieve paremeters

First, let's confrim the behavior - when a machine tool is retrieved from the library, the rigidity factor is saved in the machine tool object in the setup in the work part. If the rigidity changes in the library, you need to retrieve the machine again to update the part file. There is no UI for the setup. The only UI is for the library in Edit Machining Data Libraries.

I think you are asking how to set the rigidity factor in the setup, independent of the library. This vb program will do that by setting the parameter named "Tool Rigidity".

' MachineToolRigidity.vb
' This journal will set the Rigidity in the Machine Tool in the work part Setup
' This is a code sample only with no error checking.
' 21-nov-16		Mark Rief
Option Strict Off
Imports System
Imports System.IO
Imports NXOpen
Imports NXOpen.CAM

Module MachineToolRigidity
	Dim lw As ListingWindow
	Sub Main (ByVal args() As String) 
        Dim theSession As Session = Session.GetSession()
        Dim workPart As Part = theSession.Parts.Work
        Dim machineRoot As CAM.NCGroup = workPart.CAMSetup.GetRoot(CAMSetup.View.MachineTool)
		' Take action on the machine tool root
		lw = Session.GetSession().ListingWindow()
        lw.WriteLine( "Old Rigidity : " + machineRoot.GetRealValue( "Tool Rigidity").ToString())
		machineRoot.SetRealValue( "Tool Rigidity", 0.54321)
		lw.WriteLine( "New Rigidity : " + machineRoot.GetRealValue( "Tool Rigidity").ToString())
    End Sub
End Module



Mark Rief
Retired Siemens

Re: Machine Library: retrieve paremeters

Valued Contributor
Valued Contributor
Thanks so much. That's right!