<?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 how to have a LIST in MACRO PAUSE in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/how-to-have-a-list-in-macro-pause/m-p/6685801#M30744</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I needed to give some information to the user. As i want to ask what time of part he will be machining for later apply a correct macro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering how to use a LIST and use it in a Macro Pause&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;STRING LIST $tipos_eletrodos = {}

FILE OPEN 'C:\dcam\tipos_eletrodos.txt' FOR READ AS tipos_eletrodos
	FILE READ $tipos_eletrodos FROM tipos_eletrodos
FILE CLOSE tipos_eletrodos

MACRO PAUSE $tipos_eletrodos&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that i get a error message saying: "#ERROR: Parameter cannot be represented by a string"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideias on how to solve this ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;José Alves&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2016 10:27:49 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-11-14T10:27:49Z</dc:date>
    <item>
      <title>how to have a LIST in MACRO PAUSE</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-have-a-list-in-macro-pause/m-p/6685801#M30744</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I needed to give some information to the user. As i want to ask what time of part he will be machining for later apply a correct macro.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering how to use a LIST and use it in a Macro Pause&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;STRING LIST $tipos_eletrodos = {}

FILE OPEN 'C:\dcam\tipos_eletrodos.txt' FOR READ AS tipos_eletrodos
	FILE READ $tipos_eletrodos FROM tipos_eletrodos
FILE CLOSE tipos_eletrodos

MACRO PAUSE $tipos_eletrodos&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that i get a error message saying: "#ERROR: Parameter cannot be represented by a string"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideias on how to solve this ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&amp;nbsp;&lt;/P&gt;&lt;P&gt;José Alves&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 10:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-have-a-list-in-macro-pause/m-p/6685801#M30744</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T10:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to have a LIST in MACRO PAUSE</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-have-a-list-in-macro-pause/m-p/6685937#M30745</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;PRE&gt;STRING tiposEl = ""
STRING LIST $tipos_eletrodos = {}

FILE OPEN 'C:\dcam\tipos_eletrodos.txt' FOR READ AS tipos_eletrodos
	FILE READ $tipos_eletrodos FROM tipos_eletrodos
FILE CLOSE tipos_eletrodos

FOREACH listElement IN tipos_eletrodos {
	$tiposEl = $tiposEl + CRLF + $listElement
}

MACRO PAUSE $tiposEl&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mateusz&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 11:45:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-have-a-list-in-macro-pause/m-p/6685937#M30745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T11:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to have a LIST in MACRO PAUSE</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-have-a-list-in-macro-pause/m-p/6685956#M30746</link>
      <description>&lt;P&gt;Thank You!!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that works perfectly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 12:04:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-have-a-list-in-macro-pause/m-p/6685956#M30746</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-11-14T12:04:48Z</dc:date>
    </item>
  </channel>
</rss>

