<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Plasma Post Processor Trying to Force X and Y coordinates in Fusion Manufacture</title>
    <link>https://forums.autodesk.com/t5/fusion-manufacture/plasma-post-processor-trying-to-force-x-and-y-coordinates/m-p/9950197#M94470</link>
    <description>&lt;P&gt;You can force X &amp;amp; Y on every block by modifying the &lt;EM&gt;xOutput&lt;/EM&gt; and &lt;EM&gt;yOutput&lt;/EM&gt; definitions at the top of the program to look like this.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// &amp;lt;&amp;lt;&amp;lt; ADD 'force:true'
var xOutput = createVariable({prefix:"X", force:true}, xyzFormat);
var yOutput = createVariable({prefix:"Y", force:true}, xyzFormat);&lt;/LI-CODE&gt;
&lt;P&gt;This may give you duplicate points in the output that you do not want.&amp;nbsp; You can disable duplicate points from being output by adding the following lines to the top of the &lt;EM&gt;onRapid&lt;/EM&gt; and &lt;EM&gt;onLinear&lt;/EM&gt; functions.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;function onRapid(_x, _y, _z) { // MODIFY onLinear ALSO
  // don't output duplicate points
  var currentPosition = getCurrentPosition();
  if ((xyzFormat.getResultingValue(_x - currentPosition.x) == 0) &amp;amp;&amp;amp; (xyzFormat.getResultingValue(_y - currentPosition.y) == 0)) { // ignore zero length lines
    return;
  }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 18 Dec 2020 23:56:03 GMT</pubDate>
    <dc:creator>bob.schultz</dc:creator>
    <dc:date>2020-12-18T23:56:03Z</dc:date>
    <item>
      <title>Plasma Post Processor Trying to Force X and Y coordinates</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/plasma-post-processor-trying-to-force-x-and-y-coordinates/m-p/9950128#M94464</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get the Shopsabre Plasma post to output the X and Y coordinates on each line similar to this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MFosterVFBXP_0-1608331674934.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/858017i377904E98590E561/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MFosterVFBXP_0-1608331674934.png" alt="MFosterVFBXP_0-1608331674934.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when I try to force it at the top in the ,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;xOutput&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;createVariable&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;SPAN&gt;prefix&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"X"&lt;/SPAN&gt;&lt;SPAN&gt;},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;xyzFormat&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;yOutput&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;createVariable&lt;/SPAN&gt;&lt;SPAN&gt;({&lt;/SPAN&gt;&lt;SPAN&gt;prefix&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"Y"&lt;/SPAN&gt;&lt;SPAN&gt;},&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;xyzFormat&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;area I receive three separate coordinates for the G0 lines.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm assuming this is because these are global variables.&amp;nbsp; Is there a way to edit the G1, G2, and G3 modals to output both X and Y every time instead of this:&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2020-12-18 165451.png" style="width: 213px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/858020iA1FE38802733292A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2020-12-18 165451.png" alt="Screenshot 2020-12-18 165451.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Dec 2020 22:56:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/plasma-post-processor-trying-to-force-x-and-y-coordinates/m-p/9950128#M94464</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-18T22:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Plasma Post Processor Trying to Force X and Y coordinates</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/plasma-post-processor-trying-to-force-x-and-y-coordinates/m-p/9950197#M94470</link>
      <description>&lt;P&gt;You can force X &amp;amp; Y on every block by modifying the &lt;EM&gt;xOutput&lt;/EM&gt; and &lt;EM&gt;yOutput&lt;/EM&gt; definitions at the top of the program to look like this.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;// &amp;lt;&amp;lt;&amp;lt; ADD 'force:true'
var xOutput = createVariable({prefix:"X", force:true}, xyzFormat);
var yOutput = createVariable({prefix:"Y", force:true}, xyzFormat);&lt;/LI-CODE&gt;
&lt;P&gt;This may give you duplicate points in the output that you do not want.&amp;nbsp; You can disable duplicate points from being output by adding the following lines to the top of the &lt;EM&gt;onRapid&lt;/EM&gt; and &lt;EM&gt;onLinear&lt;/EM&gt; functions.&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;function onRapid(_x, _y, _z) { // MODIFY onLinear ALSO
  // don't output duplicate points
  var currentPosition = getCurrentPosition();
  if ((xyzFormat.getResultingValue(_x - currentPosition.x) == 0) &amp;amp;&amp;amp; (xyzFormat.getResultingValue(_y - currentPosition.y) == 0)) { // ignore zero length lines
    return;
  }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 23:56:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/plasma-post-processor-trying-to-force-x-and-y-coordinates/m-p/9950197#M94470</guid>
      <dc:creator>bob.schultz</dc:creator>
      <dc:date>2020-12-18T23:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Plasma Post Processor Trying to Force X and Y coordinates</title>
      <link>https://forums.autodesk.com/t5/fusion-manufacture/plasma-post-processor-trying-to-force-x-and-y-coordinates/m-p/9954031#M94572</link>
      <description>&lt;P&gt;Worked!&amp;nbsp; Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 15:26:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-manufacture/plasma-post-processor-trying-to-force-x-and-y-coordinates/m-p/9954031#M94572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-12-21T15:26:06Z</dc:date>
    </item>
  </channel>
</rss>

