Solved

Converting sequential surfaces to non-sequential objects: ZPL command

  • 5 September 2021
  • 1 reply
  • 160 views

Badge

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.

icon

Best answer by David.Nguyen 6 September 2021, 11:55

View original

1 reply

Userlevel 7
Badge +2

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