12-18-2020
03:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-18-2020
03:56 PM
You can force X & Y on every block by modifying the xOutput and yOutput definitions at the top of the program to look like this.
// <<< ADD 'force:true'
var xOutput = createVariable({prefix:"X", force:true}, xyzFormat);
var yOutput = createVariable({prefix:"Y", force:true}, xyzFormat);
This may give you duplicate points in the output that you do not want. You can disable duplicate points from being output by adding the following lines to the top of the onRapid and onLinear functions.
function onRapid(_x, _y, _z) { // MODIFY onLinear ALSO
// don't output duplicate points
var currentPosition = getCurrentPosition();
if ((xyzFormat.getResultingValue(_x - currentPosition.x) == 0) && (xyzFormat.getResultingValue(_y - currentPosition.y) == 0)) { // ignore zero length lines
return;
}

Bob Schultz
Sr. Post Processor Developer
Fusion