<?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: macro Machine simulation in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/8155523#M21654</link>
    <description>&lt;P&gt;You could create a simulation recording which includes this info and then reads it out from the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//The value for each move type per ductpost documentation
//Feed Move = 0
//Rapid Move = 1
//Rapid Feed Move = 2
//Plunge Move = 3
//Lead IN Move = 4
//Lead OUT Move = 5
//Cycle Link Move = 6
//Cycle Plunge Move = 7
//Cycle Rapid Move = 8
//Cycle Output Move = 9
//Intermediate Join Move = 10
//Intermediate Multi-axes Move = 11
//Link Move = 12

EDIT PAR 'Powermill.Simulation.Step' 'point'
SIMULATE RECORD ON C:\TEMP\TempSim.txt
//backup so you can get the move type of the last move, remove if you want to get the type of the next motion instead
SIMULATE STEP BACKWARD
//make the motion so it is recorded.
SIMULATE STEP FORWARD
SIMULATE RECORD OFF
FILE OPEN "C:\TEMP\TempSim.txt" FOR READ AS simfile
STRING LIST $lines={}
FILE READ $lines FROM simfile
FILE CLOSE simfile
DELETE FILE "C:\TEMP\TempSim.txt"
STRING $moveline = $lines[3] //change from 3 to 2 if you want the next move not the previous one along with above change.
INT temp = position($moveline, "MOVETYPE=") 
INT temp2 = position($moveline, " ", $temp+9)
STRING $movetype = substring($moveline, $temp + 9, $temp2 - $temp - 9) 
PRINT $MOVETYPE&lt;/PRE&gt;</description>
    <pubDate>Wed, 25 Jul 2018 19:44:13 GMT</pubDate>
    <dc:creator>JonimoosePrime</dc:creator>
    <dc:date>2018-07-25T19:44:13Z</dc:date>
    <item>
      <title>macro Machine simulation</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/7975940#M21651</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;During machine simulation, is it possible to identify the type of toolpath movement (cutting, skim, rapid) in the current machine positioning (macro command)?&lt;/P&gt;</description>
      <pubDate>Wed, 02 May 2018 23:39:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/7975940#M21651</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2018-05-02T23:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: macro Machine simulation</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/7984370#M21652</link>
      <description>&lt;P&gt;not possible?&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 11:29:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/7984370#M21652</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2018-05-07T11:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: macro Machine simulation</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/7984418#M21653</link>
      <description>&lt;P&gt;I don't think so .. In PMILL there are no function where you can get this information. So for me it's not possible . You can try to export the toolpath a Cut file and analyze the raw data then according to the current point number in your simulation get the cutting type .. But it's certainly very complexe and not something easy to do with the macro langage.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just an Idea&lt;/P&gt;</description>
      <pubDate>Mon, 07 May 2018 11:43:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/7984418#M21653</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2018-05-07T11:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: macro Machine simulation</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/8155523#M21654</link>
      <description>&lt;P&gt;You could create a simulation recording which includes this info and then reads it out from the file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//The value for each move type per ductpost documentation
//Feed Move = 0
//Rapid Move = 1
//Rapid Feed Move = 2
//Plunge Move = 3
//Lead IN Move = 4
//Lead OUT Move = 5
//Cycle Link Move = 6
//Cycle Plunge Move = 7
//Cycle Rapid Move = 8
//Cycle Output Move = 9
//Intermediate Join Move = 10
//Intermediate Multi-axes Move = 11
//Link Move = 12

EDIT PAR 'Powermill.Simulation.Step' 'point'
SIMULATE RECORD ON C:\TEMP\TempSim.txt
//backup so you can get the move type of the last move, remove if you want to get the type of the next motion instead
SIMULATE STEP BACKWARD
//make the motion so it is recorded.
SIMULATE STEP FORWARD
SIMULATE RECORD OFF
FILE OPEN "C:\TEMP\TempSim.txt" FOR READ AS simfile
STRING LIST $lines={}
FILE READ $lines FROM simfile
FILE CLOSE simfile
DELETE FILE "C:\TEMP\TempSim.txt"
STRING $moveline = $lines[3] //change from 3 to 2 if you want the next move not the previous one along with above change.
INT temp = position($moveline, "MOVETYPE=") 
INT temp2 = position($moveline, " ", $temp+9)
STRING $movetype = substring($moveline, $temp + 9, $temp2 - $temp - 9) 
PRINT $MOVETYPE&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Jul 2018 19:44:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/8155523#M21654</guid>
      <dc:creator>JonimoosePrime</dc:creator>
      <dc:date>2018-07-25T19:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: macro Machine simulation</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/8155631#M21655</link>
      <description>&lt;P&gt;Thank you for this solution&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5169064"&gt;@JonimoosePrime&lt;/a&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could be certainly very usefull to analyse a lot of informations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 20:18:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/8155631#M21655</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2018-07-25T20:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: macro Machine simulation</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/8155964#M21656</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;I had already managed to solve the problem using the events of the plugin "MachineTool events", but this solution deserves my respect&lt;/SPAN&gt; &lt;img id="manhappy" class="emoticon emoticon-manhappy" src="https://forums.autodesk.com/i/smilies/16x16_man-happy.png" alt="Man Happy" title="Man Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 23:11:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-machine-simulation/m-p/8155964#M21656</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2018-07-25T23:11:08Z</dc:date>
    </item>
  </channel>
</rss>

