<?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: looking for a macro in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/looking-for-a-macro/m-p/10289254#M8747</link>
    <description>&lt;P&gt;Works perfect, thank you very much.&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 11:01:58 GMT</pubDate>
    <dc:creator>cheidenfelder</dc:creator>
    <dc:date>2021-05-04T11:01:58Z</dc:date>
    <item>
      <title>looking for a macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-for-a-macro/m-p/10287780#M8745</link>
      <description>&lt;P&gt;I am looking for a macro to put my levels in alphabetical order. Does anybody know how to do this?&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 18:37:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-for-a-macro/m-p/10287780#M8745</guid>
      <dc:creator>cheidenfelder</dc:creator>
      <dc:date>2021-05-03T18:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: looking for a macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-for-a-macro/m-p/10288102#M8746</link>
      <description>&lt;P&gt;Here is a macro that should do what you want&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;&lt;LI-CODE lang="csharp"&gt;ENTITY LIST sortedLevels = sort(folder('level'), 'name')
ORDERSESSION Level $sortedLevels[0].name FIRST
int i = 0
FOREACH lvl IN sortedLevels {
	IF $i+1 &amp;lt; size(sortedLevels) {
	    string previousLevel = $sortedLevels[i].name
		string currentLevel = $sortedLevels[i+1].name
		ORDERSESSION Level $currentLevel AFTER $previousLevel
		$i = $i + 1
	}	
}&lt;/LI-CODE&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>Mon, 03 May 2021 21:39:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-for-a-macro/m-p/10288102#M8746</guid>
      <dc:creator>Sean570</dc:creator>
      <dc:date>2021-05-03T21:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: looking for a macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-for-a-macro/m-p/10289254#M8747</link>
      <description>&lt;P&gt;Works perfect, thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 11:01:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-for-a-macro/m-p/10289254#M8747</guid>
      <dc:creator>cheidenfelder</dc:creator>
      <dc:date>2021-05-04T11:01:58Z</dc:date>
    </item>
  </channel>
</rss>

