SaveFile
This method is used to save the NC program files generated while post processing.
The only difference of this method from “AutoSaveFile” is that , you can save NC programs (Files) before post processing has finished.
Regardless of where you define the “AutoSaveFile” method, “AutoSaveFile” saves the NC program only after post-processing is complete. Therefore you can not use “AutoSaveFile” method to create individual NC programs for each operation.
On the other hand, “SaveFile” method becomes active just when it is called during post processing and saves the NC program (File) immediately. Therefore, you can use this method when you want to create individual NC programs for each operation.
This method gets 3 parameters.
First one is the “File name”. This File name is the name defined inside “NC Output Settings”. By default, file name gets values like “File1”, “File2” etc, however you can also define file name on your own again inside “NC Output Settings”. Second parameter is the file path, which you will save your NC program. If you want you can set a fix location for saving NC programs or you can also get the selected APT/CL file location using “Program.FilePath” or “Information.FilePath” variables and you can save the NC programs in the same folder with the APT/CL file. Third parameter is the “True” or “False” selection. As mentioned above, the Ncprograms are already displayed inside MANUSpost user interface when you do not use this method. When you use this method, and select this paremeter as “True”, you will continue to see the NC program generated inside MANUSpost user interface. However, when you use this method and select this parameter as False, you will not see the NC program in the UI.