Skip to main content
Solved

Converting sequential surfaces to non-sequential objects: ZPL command

  • September 5, 2021
  • 1 reply
  • 227 views

bhousand
Forum|alt.badge.img

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.

Best answer by David.Nguyen

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

View original
Did this topic help you find an answer to your question?

1 reply

David.Nguyen
Luminary
Forum|alt.badge.img+2
  • Luminary
  • 1085 replies
  • Answer
  • September 6, 2021

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings