Skip to main content

All,

What is the ZPL command to execute the ‘Convert to NSC Group’ function available via the GUI? I want to convert and save many (Monte Carlo) files in a loop.

Hi Bhousand,

 

I don’t think that there is such a feature in the ZPL langage. Others can correct me if I’m wrong.

You’d have to use the ZOS-API for this task, which can open the Convert to NSC tool. The ZOS-API Syntax Help has an example, example 14, which shows exactly how to do that. The excerpt from that help file reads:

    # Convert file to Non-sequential mode

    convertNSmode = TheSystem.Tools.OpenConvertToNSCGroup()

    convertNSmode.ConvertFileToNSC = True

    convertNSmode.RunAndWaitForCompletion()

    convertNSmode.Close();

    # Save the Non-sequential file to the Double Gauss folder

    fileNameNS = dirLoc + "\\Double Gauss (NS).zmx"

    TheSystem.SaveAs(fileNameNS)

Let me know if this helps.

Take care,

 

David


Reply