NX CAM : Vary machining parameters in batch mode

Hi there, I'm trying to alter the machining parameters such as depth of cut, spindle speed and so on (NX 8.5), in batch mode and thereby estimate the machining time.

I've been able to access the required operation, but when I attempt to create a feeds builder object to set the spindle speed, NX throws an exception : "NX error status: 1345004". Any suggestions on how to approach this problem?

Thanks.

I don't know of anywhere to look up specific error numbers. I'd suggest using a Try block to see if the error message gives any more useful information, something like the following:



Try
'code that throws error
Catch ex as NXException
Msgbox(ex.message)
End Try



Rather than a messagebox, you could output the info to the log file or the listing window. Sometimes the error message will be enough to help track down the problem.