<?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: HOW TO APPEND STOCK MODEL in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8470703#M20876</link>
    <description>&lt;P&gt;THANKS SIR,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; THIS HAS REDUCED ME A LOT OF WORK DUE TO MACRO&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; THANKS AGAIN&lt;/P&gt;</description>
    <pubDate>Sun, 16 Dec 2018 09:17:40 GMT</pubDate>
    <dc:creator>DORMER</dc:creator>
    <dc:date>2018-12-16T09:17:40Z</dc:date>
    <item>
      <title>HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8084540#M20861</link>
      <description>&lt;P&gt;HOW TO APPEND MULTI STOCK MODEL&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 06:07:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8084540#M20861</guid>
      <dc:creator>DORMER</dc:creator>
      <dc:date>2018-06-22T06:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8084811#M20862</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5221912"&gt;@DORMER&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the Autodesk community.&lt;/P&gt;
&lt;P&gt;This is not technically possible, because the stockmodel data structures will almost certainly not be compatible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 09:21:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8084811#M20862</guid>
      <dc:creator>kamalrajcv</dc:creator>
      <dc:date>2018-06-22T09:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8085001#M20863</link>
      <description>&lt;P&gt;The only way (that I know of) is to export each stock model as an stl or dmt file. then import all of those into your CAD software, and export them all in one file. then you're able to load them as your stock block and create a stock model from that.&lt;/P&gt;&lt;P&gt;this can be a lengthy process as the triangle models tend to be very large.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 10:52:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8085001#M20863</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2018-06-22T10:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8085054#M20864</link>
      <description>&lt;P&gt;Take a look at this &lt;A href="https://forums.autodesk.com/t5/powermill-forum/multiple-stock-models-with-different-z-heights/m-p/8079859#M10858" target="_blank"&gt;instruction video &lt;/A&gt;made by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4431033"&gt;@anbu_kumar&lt;/a&gt;&amp;nbsp;on how to make multiple stock models and join them as one&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jun 2018 11:12:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8085054#M20864</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2018-06-22T11:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8088841#M20865</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3960527"&gt;@iamcdn79&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for write to us, But there is the only way right now, Export Stock model from powermill multiple time as required and Import to Powershape in the single window then export it again for Powermill block( Triangles ).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;#PM&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 08:29:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8088841#M20865</guid>
      <dc:creator>Pradipio</dc:creator>
      <dc:date>2018-06-25T08:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8091035#M20866</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5221912" target="_blank"&gt;@janakindustries&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for writing to us, you can also use attached macro &amp;amp; Screencast.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;#PM&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/4082027b-3b18-475b-a125-9a3df18ecbad" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jun 2018 04:14:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8091035#M20866</guid>
      <dc:creator>Pradipio</dc:creator>
      <dc:date>2018-06-26T04:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8115416#M20867</link>
      <description>&lt;P&gt;got this error&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="Screenshot_1.png" style="width: 536px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/520461i3C8A2094BA4907E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot_1.png" alt="Screenshot_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jul 2018 09:54:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8115416#M20867</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-07T09:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8147573#M20868</link>
      <description>&lt;P&gt;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried this in PowerMill 2019 and the supplied macro by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4104913"&gt;@Pradipio&lt;/a&gt;&amp;nbsp;works at my end. Can you please try upgrading to PowerMill 2019 and see if this gets resolved??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If yes, then&amp;nbsp;please consider marking it as an &lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;Accepted Solution&lt;/FONT&gt;&lt;/STRONG&gt; by clicking on the "Accept as Solution" in the post. Taking a moment to do this will help others&amp;nbsp;community having similar&amp;nbsp;query find this useful answers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 05:08:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8147573#M20868</guid>
      <dc:creator>Chetan.Bankar</dc:creator>
      <dc:date>2018-07-23T05:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8153471#M20869</link>
      <description>&lt;P&gt;sorry i don t have 2019&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 07:04:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8153471#M20869</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-25T07:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8170065#M20870</link>
      <description>&lt;P&gt;@Anonymous&amp;nbsp;Don't worry about that macro working or not....it doesn't do what you asked for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only real way to do this as mentioned by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3960527"&gt;@iamcdn79&lt;/a&gt;&amp;nbsp;is to export each stock model as an .stl, import all of those into your cad software....Powershape or Powermill Modeller, or any other cad software capable of importing .stl files. Then export that file containing all of your blocks as a new .stl&lt;/P&gt;&lt;P&gt;Then import that .stl as a stock model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The video as was shared by&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3960527"&gt;@iamcdn79&lt;/a&gt;.........seems to outline the correct steps to perform as mentioned above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/community/screencast/99ca21d3-4f88-4eee-9f66-883c2a758d05" target="_blank"&gt;https://knowledge.autodesk.com/community/screencast/99ca21d3-4f88-4eee-9f66-883c2a758d05&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if my memory serves me correctly....exporting/importing .stl stock models only became available in Pmill 2018. Prior to 2018, I think the only option for import/export of stock model was for .stkmd format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If that is the case....create the stock "blocks" in your cad software, then import the .stl using the block form.&lt;/P&gt;&lt;P&gt;Create your stock model, then apply block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3948773"&gt;@Chetan.Bankar&lt;/a&gt;&amp;nbsp;Please, if you don't have anything to offer other than "please upgrade to Powermill 2019" don't bother posting. Many of us are NOT going to upgrade just to solve a single issue, and are also tired of hearing from support:&amp;nbsp; "well it works in my version of Powermill"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Aug 2018 11:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8170065#M20870</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-01T11:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8173494#M20871</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;sorry i don t have 2019&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Hi&amp;nbsp;@Anonymous,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to hear that you don't have PowerMill 2019. Please find attached the macro 'multiblock_2018.mac' which will work in PowerMill 2018.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you are aware; there is no easy way to append multiple stockmodels.&amp;nbsp;This macro will help you in creating and exporting multiple stockmodels&amp;nbsp;in a project as &lt;FONT face="courier new,courier"&gt;*.STL&lt;/FONT&gt;&amp;nbsp;files as shown in video &lt;A href="https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8091035#M10959" target="_blank"&gt;here.&lt;/A&gt; This individual files can then be import into PowerShape or CAD Software which can then be exported as a single STL file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This&amp;nbsp;single stl file can then be used as a Block defined by Triangles which can further be applied to a newly created stockmodel to give you appended stockmodel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 14:50:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8173494#M20871</guid>
      <dc:creator>Chetan.Bankar</dc:creator>
      <dc:date>2018-08-02T14:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8423566#M20872</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3948773"&gt;@Chetan.Bankar&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Create multiple blanks and inputs.&lt;BR /&gt;I modified a single output and transferred it to the blank. But it was not created.&lt;BR /&gt;How to combine two macros into one.&lt;BR /&gt;Attached file.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 03:51:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8423566#M20872</guid>
      <dc:creator>Genericxg</dc:creator>
      <dc:date>2018-11-26T03:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8423571#M20873</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3948773"&gt;@Chetan.Bankar&lt;/a&gt;&lt;BR /&gt;Attached ：&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;FUNCTION Main(){&lt;/P&gt;
&lt;P&gt;STRING $BlockName = 'Block' &lt;BR /&gt; STRING $TempPath = 'C:\Temp\' &lt;BR /&gt; &lt;BR /&gt; INT $Counter = 1 &lt;BR /&gt; STRING LIST $SavedBlocks = {}&lt;BR /&gt; ENTITY LIST $Temp = {}&lt;/P&gt;
&lt;P&gt;ENTITY LIST $BlockStockModels = INPUT ENTITY MULTIPLE StockModel "Please choose£¡£¡£¡"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; IF is_empty($BlockStockModels) {&lt;/P&gt;
&lt;P&gt;RETURN&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;FOREACH $StockModel IN $BlockStockModels {&lt;/P&gt;
&lt;P&gt;ACTIVATE StockModel $StockModel.Name&lt;BR /&gt; //EDIT BLOCKTYPE TRIANGLES&lt;BR /&gt; //EDIT BLOCK RESET &lt;BR /&gt; STRING $Path = $TempPath + $BlockName + $Counter + ".stl"&lt;BR /&gt; EXPORT STOCKMODEL_SHADING ; $Path YES&lt;BR /&gt; INT $Size = add_last($SavedBlocks, $Path)&lt;BR /&gt; $Counter = Counter + 1 &lt;BR /&gt; } &lt;BR /&gt; DEACTIVATE StockModel&lt;/P&gt;
&lt;P&gt;$Temp = folder('Model')&lt;BR /&gt; STRING LIST $OldModels = {}&lt;BR /&gt; CALL Entity2String($Temp, $OldModels)&lt;/P&gt;
&lt;P&gt;FOREACH $Block IN $SavedBlocks {&lt;BR /&gt; IMPORT MODEL $Block&lt;BR /&gt; DELETE FILE $Block&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;EDIT LEVEL "Triangle Model" SELECT ALL &lt;BR /&gt; STRING $Path = $TempPath + "BlockAll.stl"&lt;BR /&gt; EXPORT MODEL ALL "C:\Temp\BlockAll.stl" YES&lt;/P&gt;
&lt;P&gt;$Temp = folder('Model')&lt;BR /&gt; STRING LIST $NewModels = {}&lt;BR /&gt; CALL Entity2String($Temp, $NewModels)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; STRING LIST $ModelsToDelete = subtract($NewModels, $OldModels) &lt;BR /&gt; FOREACH $item IN $ModelsToDelete {&lt;BR /&gt; DELETE MODEL $item&lt;BR /&gt; } &lt;BR /&gt; DELETE LEVEL "Triangle Model"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; EDIT BLOCK COORDINATE WORLD&lt;BR /&gt; EDIT BLOCKTYPE TRIANGLES &lt;BR /&gt; GET BLOCK $Path&lt;BR /&gt; BLOCK ACCEPT&lt;BR /&gt; DRAW BLOCK&lt;BR /&gt; DELETE FILE $Path&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;FUNCTION Entity2String(ENTITY LIST $EntityList, OUTPUT STRING LIST $StringList) {&lt;/P&gt;
&lt;P&gt;$StringList = {} &lt;BR /&gt; FOREACH $item IN $EntityList {&lt;BR /&gt; INT $Size = add_last($StringList, $item.name) &lt;BR /&gt; } &lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 03:57:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8423571#M20873</guid>
      <dc:creator>Genericxg</dc:creator>
      <dc:date>2018-11-26T03:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8423865#M20874</link>
      <description>&lt;P&gt;hi @&lt;SPAN class="login-bold"&gt;&lt;A id="link_13" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3960527" target="_self"&gt;iamcdn79&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;I am modifying a multi-blank macro myself.&lt;BR /&gt;This is sometimes very slow at the output and input. Is the code unreasonable?&lt;BR /&gt;Sometimes the PowerMill Ultimate 2019 interface is still stuck.&lt;BR /&gt;I use Version: 2019.1.2.2019117.&lt;BR /&gt;help me&lt;BR /&gt;Thank you!&lt;/SPAN&gt;&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;P&gt;FUNCTION Main(){&lt;/P&gt;
&lt;P&gt;STRING $BlockName = 'Block' &lt;BR /&gt; STRING $TempPath = 'C:\Temp\' &lt;BR /&gt; &lt;BR /&gt; INT $Counter = 1 &lt;BR /&gt; STRING LIST $SavedBlocks = {}&lt;BR /&gt; ENTITY LIST $Temp = {}&lt;/P&gt;
&lt;P&gt;BOOL EXEC = False&lt;BR /&gt;WHILE NOT $EXEC {&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;DELETE BLOCK&lt;BR /&gt;EDIT BLOCK ALL UNLOCK&lt;BR /&gt;STRING Msg = "Select surfaces for block,"+crlf+"Click Calculate block and"+crlf+"RESUME when ready to continue"&lt;BR /&gt;MACRO PAUSE $Msg&lt;BR /&gt;BLOCK ACCEPT &lt;BR /&gt;CREATE STOCKMODEL ; FORM STOCKMODEL ;&lt;BR /&gt;EDIT STOCKMODEL ; STEPOVER ".5"&lt;BR /&gt;FORM ACCEPT STOCKMODEL&lt;BR /&gt;EDIT STOCKMODEL ; BLOCK ;&lt;BR /&gt;EXPLORER SELECT StockModel "StockModel\#" NEW&lt;BR /&gt;EDIT STOCKMODEL ; CALCULATE&lt;/P&gt;
&lt;P&gt;STRING yesnoprompt = "done?" + crlf + " yes(ok) no(Continue)"&lt;BR /&gt; $EXEC = query $yesnoprompt&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ENTITY LIST $BlockStockModels = INPUT ENTITY MULTIPLE StockModel "Selection of Residual Model Blanks for Output："&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; IF is_empty($BlockStockModels) {&lt;/P&gt;
&lt;P&gt;RETURN&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;FOREACH $StockModel IN $BlockStockModels {&lt;/P&gt;
&lt;P&gt;ACTIVATE StockModel $StockModel.Name&lt;BR /&gt; //EDIT BLOCKTYPE TRIANGLES&lt;BR /&gt; //EDIT BLOCK RESET &lt;BR /&gt; STRING $Path = $TempPath + $BlockName + $Counter + ".stl"&lt;BR /&gt; EXPORT STOCKMODEL_SHADING ; $Path YES&lt;BR /&gt; INT $Size = add_last($SavedBlocks, $Path)&lt;BR /&gt; $Counter = Counter + 1 &lt;BR /&gt; } &lt;BR /&gt; DEACTIVATE StockModel&lt;/P&gt;
&lt;P&gt;$Temp = folder('Model')&lt;BR /&gt; STRING LIST $OldModels = {}&lt;BR /&gt; CALL Entity2String($Temp, $OldModels)&lt;/P&gt;
&lt;P&gt;FOREACH $Block IN $SavedBlocks {&lt;BR /&gt; IMPORT MODEL $Block&lt;BR /&gt; DELETE FILE $Block&lt;BR /&gt; }&lt;/P&gt;
&lt;P&gt;EDIT LEVEL "Triangle Model" SELECT ALL &lt;BR /&gt; STRING $Path = $TempPath + "BlockAll.stl"&lt;BR /&gt; EXPORT MODEL ALL "C:\Temp\BlockAll.stl" YES&lt;/P&gt;
&lt;P&gt;$Temp = folder('Model')&lt;BR /&gt; STRING LIST $NewModels = {}&lt;BR /&gt; CALL Entity2String($Temp, $NewModels)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt; STRING LIST $ModelsToDelete = subtract($NewModels, $OldModels) &lt;BR /&gt; FOREACH $item IN $ModelsToDelete {&lt;BR /&gt; DELETE MODEL $item&lt;BR /&gt; } &lt;BR /&gt; DELETE LEVEL "Triangle Model"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; EDIT BLOCK COORDINATE WORLD&lt;BR /&gt; EDIT BLOCKTYPE TRIANGLES &lt;BR /&gt; GET BLOCK $Path&lt;BR /&gt; BLOCK ACCEPT&lt;BR /&gt; DRAW BLOCK&lt;BR /&gt; DELETE FILE $Path&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;FUNCTION Entity2String(ENTITY LIST $EntityList, OUTPUT STRING LIST $StringList) {&lt;/P&gt;
&lt;P&gt;$StringList = {} &lt;BR /&gt; FOREACH $item IN $EntityList {&lt;BR /&gt; INT $Size = add_last($StringList, $item.name) &lt;BR /&gt; } &lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 08:12:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8423865#M20874</guid>
      <dc:creator>Genericxg</dc:creator>
      <dc:date>2018-11-26T08:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8457962#M20875</link>
      <description>&lt;P&gt;It is not ideal to get the blanks cyclically. What are the good suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Dec 2018 19:37:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8457962#M20875</guid>
      <dc:creator>Genericxg</dc:creator>
      <dc:date>2018-12-10T19:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: HOW TO APPEND STOCK MODEL</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8470703#M20876</link>
      <description>&lt;P&gt;THANKS SIR,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; THIS HAS REDUCED ME A LOT OF WORK DUE TO MACRO&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; THANKS AGAIN&lt;/P&gt;</description>
      <pubDate>Sun, 16 Dec 2018 09:17:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/how-to-append-stock-model/m-p/8470703#M20876</guid>
      <dc:creator>DORMER</dc:creator>
      <dc:date>2018-12-16T09:17:40Z</dc:date>
    </item>
  </channel>
</rss>

