<?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 Betreff: Can't find documentation (new macro commands) in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11746232#M4598</link>
    <description>&lt;P&gt;So near yet so far....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="old_snickers_0-1676054520665.gif" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1174956iB7CD338306D3156A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="old_snickers_0-1676054520665.gif" alt="old_snickers_0-1676054520665.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Many. many thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 10 Feb 2023 18:45:17 GMT</pubDate>
    <dc:creator>old_snickers</dc:creator>
    <dc:date>2023-02-10T18:45:17Z</dc:date>
    <item>
      <title>Can't find documentation (new macro commands)</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11743514#M4596</link>
      <description>&lt;P&gt;Hello&amp;nbsp; to all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found here a lot of very inspiring macros, written by some real programming idols. Many thanks to all for sharing this great work!&amp;nbsp; But unfortunately the customizing for my own circumstances causes often a lot of "try and error", because I can not find any explanation in the "Macro programming guide".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two examples:&lt;/P&gt;&lt;P&gt;FOREACH $Selected IN (explorer_selected_entities()) ....&lt;/P&gt;&lt;P&gt;string list tp_names = extract(flatten(extract($progs, 'nctoolpath')), 'name')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How are the possibilities with "explorer_selected_entities", how is it to use and what the hell means "flatten" inside of the extract-command?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any further documentation for macro commands which are not descripted in the here downloadeble guide?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 19:00:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11743514#M4596</guid>
      <dc:creator>old_snickers</dc:creator>
      <dc:date>2023-02-09T19:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find documentation (new macro commands)</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11743705#M4597</link>
      <description>&lt;P&gt;The definitions youre looking for are under help, documentation, parameters, reference. In that document you can go to the Functions section and find examples and definitions of your two examples as well as a host of others.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 490px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1174491iCC1ED1E6C82B5986/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 666px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1174492i829AC11E8D3F55FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 812px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1174493iF683E24870408C52/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 20:22:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11743705#M4597</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2023-02-09T20:22:08Z</dc:date>
    </item>
    <item>
      <title>Betreff: Can't find documentation (new macro commands)</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11746232#M4598</link>
      <description>&lt;P&gt;So near yet so far....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="old_snickers_0-1676054520665.gif" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1174956iB7CD338306D3156A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="old_snickers_0-1676054520665.gif" alt="old_snickers_0-1676054520665.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Many. many thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 18:45:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11746232#M4598</guid>
      <dc:creator>old_snickers</dc:creator>
      <dc:date>2023-02-10T18:45:17Z</dc:date>
    </item>
    <item>
      <title>Betreff: Can't find documentation (new macro commands)</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11753983#M4599</link>
      <description>&lt;P&gt;Taken the example given with flatten above, if you do something like&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; extract(folder('toolpath'),' Name')&lt;BR /&gt;what you get back is a list of toolpath names. So you can do something like&lt;/P&gt;&lt;LI-CODE lang="general"&gt;STRING LIST names = extract(folder('toolpath'), 'Name')&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;but what happens if you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;extract(folder('toolpath','BadSurfaces.List')&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;what you get back is a list where each item in the list is a list of names. In effect you have a list of lists. Now you could write something like&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;STRING LIST badsurfs = {}
FOREACH lst IN extract(folder('toolpath','BadSurfaces.List') {
  FOREACH item IN lst {
    int x = add_last(badsurfs, item)
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the flatten() function takes a list of lists and puts the contents of all the lists into a single list. in effect it 'flattens' the list of list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 15:08:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11753983#M4599</guid>
      <dc:creator>urizenYHS3W</dc:creator>
      <dc:date>2023-02-14T15:08:20Z</dc:date>
    </item>
    <item>
      <title>Betreff: Can't find documentation (new macro commands)</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11754562#M4600</link>
      <description>&lt;P&gt;Sounds reasonable... I will do some experiments with this (and with a little more plan now) &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2023 18:35:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/can-t-find-documentation-new-macro-commands/m-p/11754562#M4600</guid>
      <dc:creator>old_snickers</dc:creator>
      <dc:date>2023-02-14T18:35:52Z</dc:date>
    </item>
  </channel>
</rss>

