Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
vid.kok
in reply to: NYC_CNC

Hi John,

 

Is that the function that you are using in your postprocessor?

 

function onPassThrough(text) {
  var commands = String(text).split(",");
  for (text in commands) {
    writeBlock(commands[text]);
  }
}

It is from: https://knowledge.autodesk.com/support/hsm/learn-explore/caas/sfdcarticles/sfdcarticles/How-to-use-M...

 

You could replace the comma in the split method with some other ASCII character that generally does not appear in a text and use that character to move to another line. You could use "~" (tilde) for example.

 

function onPassThrough(text) {
  var commands = String(text).split("~");
  for (text in commands) {
    writeBlock(commands[text]);
  }
}