03-05-2024
09:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-05-2024
09:56 PM
I already solved it myself... If anyone is interested, the code is as follows:
var material = "";
var zmena = "";
if (hasGlobalParameter("job-notes")) {
var notes = getGlobalParameter("job-notes");
if (notes) {
var lines = String(notes).split("\n");
material = lines[0].replace(/^\s+|\s+$/gm,'');
zmena = lines[1].replace(/^\s+|\s+$/gm,'');
}
}
writeBlock("*-material:" + material);
writeBlock("*-zmena:" + zmena);
Fusion