<?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 check parameters in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/macro-check-parameters/m-p/8843021#M15203</link>
    <description>&lt;P&gt;Try changing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FOREACH $ Selected_Toolpath in folder ('toolpath') {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FOREACH $Selected_Toolpath in folder ('toolpath') {&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2019 19:14:42 GMT</pubDate>
    <dc:creator>iamcdn79</dc:creator>
    <dc:date>2019-06-10T19:14:42Z</dc:date>
    <item>
      <title>Macro check parameters</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-check-parameters/m-p/8843001#M15202</link>
      <description>&lt;P&gt;Pourquoi lorsque je suis en version débug ma macro fonctionne mais pas en fonction selected toolpath ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Function Main(STRING $Selected_Toolpath) {&lt;BR /&gt;//effacer les backslash sur la ligne 1 et les positionner au début de la ligne 3 pour version selected toolapth&lt;BR /&gt;FOREACH $Selected_Toolpath in folder('toolpath') {&lt;/P&gt;&lt;P&gt;STRING $FileName = ""&lt;/P&gt;&lt;P&gt;IF ($powermill.Status.MultipleSelection.First) OR $powermill.Status.MultipleSelection.Total == 0 {&lt;/P&gt;&lt;P&gt;$FileName = FILESELECT "Enter a .csv file" "*.csv"&lt;/P&gt;&lt;P&gt;IF LTRIM($FileName) == "" {&lt;BR /&gt;RETURN&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;IF LENGTH($FileName) &amp;lt; 5 {&lt;BR /&gt;$FileName = $FileName + ".csv"&lt;BR /&gt;} ELSEIF LCASE(SUBSTRING($FileName, LENGTH($FileName)-4, 4)) != ".csv" {&lt;BR /&gt;$FileName = $FileName + ".csv"&lt;BR /&gt;}&lt;BR /&gt;ACTIVATE TOOLPATH $Selected_Toolpath&lt;BR /&gt;FILE OPEN $FileName FOR WRITE AS outputfile&lt;BR /&gt;FILE WRITE ${"Name,Tolerance,Coolant,RPM,FeedRate,SkimFeed,OutputType,ToleranceFactor,MeshFactor"} TO outputfile&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;STRING $PrintLine = $Selected_Toolpath.Name + "," + $Selected_Toolpath.Tolerance + "," + $Selected_Toolpath.Coolant.Value + "," + $Selected_Toolpath.SpindleSpeed.Value + ","&lt;BR /&gt;$PrintLine = $PrintLine + $Selected_Toolpath.FeedRate.Cutting.Value + "," + $Selected_Toolpath.FeedRate.Rapid + ","&lt;BR /&gt;$PrintLine = $PrintLine + $Selected_Toolpath.Filter.Type + "," + $Selected_Toolpath.Filter.Factor + "," + $Selected_Toolpath.Mesh.Factor&lt;/P&gt;&lt;P&gt;FILE WRITE $PrintLine TO outputfile&lt;/P&gt;&lt;P&gt;//FILE CLOSE outputfile&lt;/P&gt;&lt;P&gt;IF ($powermill.Status.MultipleSelection.Last) OR $powermill.Status.MultipleSelection.Total == 0 {&lt;BR /&gt;OLE FILEACTION 'open' $FileName&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 19:06:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-check-parameters/m-p/8843001#M15202</guid>
      <dc:creator>keven.beaudoin</dc:creator>
      <dc:date>2019-06-10T19:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Macro check parameters</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-check-parameters/m-p/8843021#M15203</link>
      <description>&lt;P&gt;Try changing&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FOREACH $ Selected_Toolpath in folder ('toolpath') {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FOREACH $Selected_Toolpath in folder ('toolpath') {&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 19:14:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-check-parameters/m-p/8843021#M15203</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2019-06-10T19:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro check parameters</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-check-parameters/m-p/8844327#M15204</link>
      <description>&lt;P&gt;Sorry, I don't understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like this Function to work :&lt;/P&gt;&lt;P&gt;Function Main(STRING $Selected_Toolpath) {&lt;BR /&gt;//effacer les backslash sur la ligne 1 et les positionner au début de la ligne 3 pour version selected toolapth&lt;BR /&gt;//FOREACH $Selected_Toolpath in folder('toolpath') {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 11:56:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-check-parameters/m-p/8844327#M15204</guid>
      <dc:creator>keven.beaudoin</dc:creator>
      <dc:date>2019-06-11T11:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: Macro check parameters</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-check-parameters/m-p/8844341#M15205</link>
      <description>&lt;P&gt;In your original post you had a space between $ and &lt;SPAN&gt;Selected_Toolpath. I figured there wasn't supposed to be one and thats why you weren't getting the same results in Powermill&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 12:07:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-check-parameters/m-p/8844341#M15205</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2019-06-11T12:07:19Z</dc:date>
    </item>
  </channel>
</rss>

