<?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 Import Model Macro Suggestions in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7813603#M22830</link>
    <description>&lt;P&gt;I have a setup Macro that I'd like to pop up the import model option first. Adjust my workplanes and block then reimport a previous project that is similar to the current model. Whenever I try to use IMPORT MODEL FILEOPEN in a macro with anything else it will error out. I've tried running it as a separate macro called out from this macro but it never stops to give me time to select a new model and just errors out again. If I just paste the text and run in in the command window it will work as intended.&lt;/P&gt;&lt;P&gt;Also does anyone have a faster way to update the reference projects toolpaths workplanes and blocks to match the new models workplane and blocks or a way to delete the reference model in a wildcard $ fashion automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the long post this is me trying to consolidate multiple macros into one simple to understand process for others.&lt;/P&gt;&lt;P&gt;Thank you in advance ladies/gents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers, Kodi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MACRO PAUSE " Choose New Model"&lt;/P&gt;&lt;P&gt;IMPORT MODEL FILEOPEN&lt;BR /&gt;DELETE WORKPLANE ALL&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;EDIT BLOCK TOLERANCE ".01"&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK LIMITTYPE MODEL&lt;BR /&gt;EDIT PAR powermill.Options.Block.UseReferenceModel 1&lt;BR /&gt;EDIT BLOCKTYPE BOX&lt;BR /&gt;EDIT BLOCK COORDINATE NAMED&lt;BR /&gt;DRAW BLOCK&lt;BR /&gt;EDIT BLOCK DRAWMODE 25&lt;BR /&gt;EDIT BLOCK ALL UNLOCK&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;BLOCK ACCEPT&lt;BR /&gt;MODE WORKPLANE_CREATE ; INTERACTIVE BLOCK&lt;BR /&gt;MACRO PAUSE "Choose a point on the block"&lt;BR /&gt;MODE WORKPLANE_EDIT START "1"&lt;BR /&gt;MODE WORKPLANE_EDIT NAME "Top"&lt;BR /&gt;MODE WORKPLANE_EDIT SWAP_AXES&lt;BR /&gt;MACRO PAUSE "Choose Axes Orientation"&lt;BR /&gt;MODE WORKPLANE_EDIT FINISH ACCEPT&lt;BR /&gt;ACTIVATE Workplane "Top"&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;EDIT BLOCK COORDINATE NAMED&lt;BR /&gt;EDIT BLOCK NAMEDWORKPLANE "Top"&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;EDIT BLOCK ZMAX "0.001"&lt;BR /&gt;EDIT BLOCK ZMAX LOCK&lt;BR /&gt;EDIT BLOCK ZMIN LOCK&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.26"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;MACRO PAUSE "Make Sure On Center"&lt;BR /&gt;BLOCK ACCEPT&lt;BR /&gt;EDIT TOOLPATH LEADS RAISEFORM&lt;BR /&gt;EDIT TOOLPATH LEADS PAGE RAPIDMOVES&lt;BR /&gt;EDIT TOOLPATH SAFEAREA MEASURE_FROM BLOCK_AND_MODEL&lt;BR /&gt;EDIT PAR 'Rapid.CalculateDimensions.RapidClearance'&amp;nbsp; ".6"&lt;BR /&gt;EDIT PAR 'Rapid.CalculateDimensions.PlungeClearance'&amp;nbsp; ".1"&lt;BR /&gt;EDIT TOOLPATH SAFEAREA CALCULATE_DIMENSIONS&lt;BR /&gt;LEADS ACCEPT&lt;BR /&gt;//Import Reference Project To Use Toolpaths From&lt;/P&gt;&lt;P&gt;MACRO PAUSE "Import Reference Project"&lt;/P&gt;&lt;P&gt;IMPORT MODEL FILEOPEN&lt;/P&gt;</description>
    <pubDate>Tue, 27 Feb 2018 20:04:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-02-27T20:04:51Z</dc:date>
    <item>
      <title>Import Model Macro Suggestions</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7813603#M22830</link>
      <description>&lt;P&gt;I have a setup Macro that I'd like to pop up the import model option first. Adjust my workplanes and block then reimport a previous project that is similar to the current model. Whenever I try to use IMPORT MODEL FILEOPEN in a macro with anything else it will error out. I've tried running it as a separate macro called out from this macro but it never stops to give me time to select a new model and just errors out again. If I just paste the text and run in in the command window it will work as intended.&lt;/P&gt;&lt;P&gt;Also does anyone have a faster way to update the reference projects toolpaths workplanes and blocks to match the new models workplane and blocks or a way to delete the reference model in a wildcard $ fashion automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the long post this is me trying to consolidate multiple macros into one simple to understand process for others.&lt;/P&gt;&lt;P&gt;Thank you in advance ladies/gents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers, Kodi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MACRO PAUSE " Choose New Model"&lt;/P&gt;&lt;P&gt;IMPORT MODEL FILEOPEN&lt;BR /&gt;DELETE WORKPLANE ALL&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;EDIT BLOCK TOLERANCE ".01"&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK LIMITTYPE MODEL&lt;BR /&gt;EDIT PAR powermill.Options.Block.UseReferenceModel 1&lt;BR /&gt;EDIT BLOCKTYPE BOX&lt;BR /&gt;EDIT BLOCK COORDINATE NAMED&lt;BR /&gt;DRAW BLOCK&lt;BR /&gt;EDIT BLOCK DRAWMODE 25&lt;BR /&gt;EDIT BLOCK ALL UNLOCK&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;BLOCK ACCEPT&lt;BR /&gt;MODE WORKPLANE_CREATE ; INTERACTIVE BLOCK&lt;BR /&gt;MACRO PAUSE "Choose a point on the block"&lt;BR /&gt;MODE WORKPLANE_EDIT START "1"&lt;BR /&gt;MODE WORKPLANE_EDIT NAME "Top"&lt;BR /&gt;MODE WORKPLANE_EDIT SWAP_AXES&lt;BR /&gt;MACRO PAUSE "Choose Axes Orientation"&lt;BR /&gt;MODE WORKPLANE_EDIT FINISH ACCEPT&lt;BR /&gt;ACTIVATE Workplane "Top"&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;EDIT BLOCK COORDINATE NAMED&lt;BR /&gt;EDIT BLOCK NAMEDWORKPLANE "Top"&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;EDIT BLOCK ZMAX "0.001"&lt;BR /&gt;EDIT BLOCK ZMAX LOCK&lt;BR /&gt;EDIT BLOCK ZMIN LOCK&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.26"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;MACRO PAUSE "Make Sure On Center"&lt;BR /&gt;BLOCK ACCEPT&lt;BR /&gt;EDIT TOOLPATH LEADS RAISEFORM&lt;BR /&gt;EDIT TOOLPATH LEADS PAGE RAPIDMOVES&lt;BR /&gt;EDIT TOOLPATH SAFEAREA MEASURE_FROM BLOCK_AND_MODEL&lt;BR /&gt;EDIT PAR 'Rapid.CalculateDimensions.RapidClearance'&amp;nbsp; ".6"&lt;BR /&gt;EDIT PAR 'Rapid.CalculateDimensions.PlungeClearance'&amp;nbsp; ".1"&lt;BR /&gt;EDIT TOOLPATH SAFEAREA CALCULATE_DIMENSIONS&lt;BR /&gt;LEADS ACCEPT&lt;BR /&gt;//Import Reference Project To Use Toolpaths From&lt;/P&gt;&lt;P&gt;MACRO PAUSE "Import Reference Project"&lt;/P&gt;&lt;P&gt;IMPORT MODEL FILEOPEN&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 20:04:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7813603#M22830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-27T20:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import Model Macro Suggestions</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7814608#M22831</link>
      <description>&lt;P&gt;STRING $filename = ""&lt;BR /&gt;$filename = FILESELECT "Select file"&lt;BR /&gt;IMPORT MODEL $filename&lt;BR /&gt;FORM BLOCK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 05:12:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7814608#M22831</guid>
      <dc:creator>precicam</dc:creator>
      <dc:date>2018-02-28T05:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Import Model Macro Suggestions</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7814631#M22832</link>
      <description>&lt;P&gt;u can also choose what kind of file you want to see in the explorer and where u want to search&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$Filename = FILESELECT "Select the Modell" "*.igs;*.stp;*.STEP;*.dgk;*.sldprt;*.x_t" "P:\."&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Feb 2018 05:37:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7814631#M22832</guid>
      <dc:creator>gosmann.andreas</dc:creator>
      <dc:date>2018-02-28T05:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Import Model Macro Suggestions</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7817183#M22833</link>
      <description>&lt;P&gt;Works great for the first import at the start of the macro yet on the second import for the reference project I'm getting this error. Any ideas?&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-left" image-alt="2-28-18Error.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/469141iA547F01E9DC54D8E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2-28-18Error.PNG" alt="2-28-18Error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 19:21:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7817183#M22833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T19:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Import Model Macro Suggestions</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7817368#M22834</link>
      <description>&lt;P&gt;Alright I reread the macro documentation and it looks like its creating a temp variable only within the macro so I edited my second import of the reference model to this so it has another variable now thats working but I have a new error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MACRO PAUSE "Import Reference Project"&lt;BR /&gt;STRING Filename1 = ""&lt;BR /&gt;$Filename = FILESELECT "Select file"&lt;BR /&gt;IMPORT PROJECT $filename&lt;BR /&gt;MACRO PAUSE "Delete Reference Model"&lt;BR /&gt;DELETE LEVEL EMPTY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to import a reference powermill project it appears. Any command Ideas to import a PMill Project?&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-left" image-alt="2-28-18Error2.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/469158iC199037E69027FBD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2-28-18Error2.PNG" alt="2-28-18Error2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 20:07:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7817368#M22834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T20:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: Import Model Macro Suggestions</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7817590#M22835</link>
      <description>&lt;P&gt;Updated Macro that works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DIALOGS MESSAGE OFF&lt;BR /&gt;STRING Filename = ""&lt;BR /&gt;$Filename = FILESELECT "Select file"&lt;BR /&gt;IMPORT MODEL $filename&lt;BR /&gt;DIALOGS MESSAGE ON&lt;BR /&gt;ROTATE TRANSFORM ISO1&lt;BR /&gt;DELETE WORKPLANE ALL&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;EDIT BLOCK TOLERANCE ".01"&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK LIMITTYPE MODEL&lt;BR /&gt;EDIT PAR powermill.Options.Block.UseReferenceModel 1&lt;BR /&gt;EDIT BLOCKTYPE BOX&lt;BR /&gt;EDIT BLOCK COORDINATE NAMED&lt;BR /&gt;DRAW BLOCK&lt;BR /&gt;EDIT BLOCK DRAWMODE 25&lt;BR /&gt;EDIT BLOCK ALL UNLOCK&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;BLOCK ACCEPT&lt;BR /&gt;MODE WORKPLANE_CREATE ; INTERACTIVE BLOCK&lt;BR /&gt;MACRO PAUSE "Choose a point on the block"&lt;BR /&gt;MODE WORKPLANE_EDIT START "1"&lt;BR /&gt;MODE WORKPLANE_EDIT NAME "Top"&lt;BR /&gt;MODE WORKPLANE_EDIT SWAP_AXES&lt;BR /&gt;MACRO PAUSE "Choose Axes Orientation"&lt;BR /&gt;MODE WORKPLANE_EDIT FINISH ACCEPT&lt;BR /&gt;ACTIVATE Workplane "Top"&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;EDIT BLOCK COORDINATE NAMED&lt;BR /&gt;EDIT BLOCK NAMEDWORKPLANE "Top"&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;EDIT BLOCK ZMAX "0.001"&lt;BR /&gt;EDIT BLOCK ZMAX LOCK&lt;BR /&gt;EDIT BLOCK ZMIN LOCK&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.26"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;MACRO PAUSE "Make Sure On Center"&lt;BR /&gt;BLOCK ACCEPT&lt;BR /&gt;EDIT TOOLPATH LEADS RAISEFORM&lt;BR /&gt;EDIT TOOLPATH LEADS PAGE RAPIDMOVES&lt;BR /&gt;EDIT TOOLPATH SAFEAREA MEASURE_FROM BLOCK_AND_MODEL&lt;BR /&gt;EDIT PAR 'Rapid.CalculateDimensions.RapidClearance'&amp;nbsp; ".6"&lt;BR /&gt;EDIT PAR 'Rapid.CalculateDimensions.PlungeClearance'&amp;nbsp; ".1"&lt;BR /&gt;EDIT TOOLPATH SAFEAREA CALCULATE_DIMENSIONS&lt;BR /&gt;LEADS ACCEPT&lt;BR /&gt;//Import Reference Project To Use Toolpaths From&lt;BR /&gt;MACRO PAUSE "Import New Model"&lt;BR /&gt;PROJECT IMPORT PROJSELECTOR&lt;BR /&gt;MACRO PAUSE "Delete Reference Model Then Click Resume"&lt;BR /&gt;DELETE LEVEL EMPTY&lt;BR /&gt;ACTIVATE Workplane "Top"&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2018 21:11:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7817590#M22835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-28T21:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Import Model Macro Suggestions</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7820231#M22836</link>
      <description>&lt;P&gt;Final Macro is a little rough but idiot proofs and gets the job done. Feel free to comment and tweak it if better ideas are had.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again guys/gals,&lt;/P&gt;&lt;P&gt;Kodi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Created by Kodi Fanello &amp;amp; Community&lt;/P&gt;&lt;P&gt;DIALOGS MESSAGE OFF&lt;BR /&gt;STRING Filename = ""&lt;BR /&gt;$Filename = FILESELECT "Select file"&lt;BR /&gt;IMPORT MODEL $filename&lt;BR /&gt;DIALOGS MESSAGE ON&lt;BR /&gt;ROTATE TRANSFORM ISO1&lt;BR /&gt;DELETE WORKPLANE ALL&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;EDIT BLOCK TOLERANCE ".01"&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK LIMITTYPE MODEL&lt;BR /&gt;EDIT PAR powermill.Options.Block.UseReferenceModel 1&lt;BR /&gt;EDIT BLOCKTYPE BOX&lt;BR /&gt;EDIT BLOCK COORDINATE NAMED&lt;BR /&gt;DRAW BLOCK&lt;BR /&gt;EDIT BLOCK DRAWMODE 25&lt;BR /&gt;EDIT BLOCK ALL UNLOCK&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;BLOCK ACCEPT&lt;BR /&gt;MODE WORKPLANE_CREATE ; INTERACTIVE BLOCK&lt;BR /&gt;MACRO PAUSE "Choose a point on the block"&lt;BR /&gt;MODE WORKPLANE_EDIT START "1"&lt;BR /&gt;MODE WORKPLANE_EDIT NAME "Top"&lt;BR /&gt;MODE WORKPLANE_EDIT SWAP_AXES&lt;BR /&gt;MACRO PAUSE "Choose Axes Orientation"&lt;BR /&gt;MODE WORKPLANE_EDIT FINISH ACCEPT&lt;BR /&gt;ACTIVATE Workplane "Top"&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;EDIT BLOCK COORDINATE NAMED&lt;BR /&gt;EDIT BLOCK NAMEDWORKPLANE "Top"&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;EDIT BLOCK ZMAX "0.001"&lt;BR /&gt;EDIT BLOCK ZMAX LOCK&lt;BR /&gt;EDIT BLOCK ZMIN LOCK&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.26"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;MACRO PAUSE "Make Sure On Center"&lt;BR /&gt;BLOCK ACCEPT&lt;BR /&gt;EDIT TOOLPATH LEADS RAISEFORM&lt;BR /&gt;EDIT TOOLPATH LEADS PAGE RAPIDMOVES&lt;BR /&gt;EDIT TOOLPATH SAFEAREA MEASURE_FROM BLOCK_AND_MODEL&lt;BR /&gt;EDIT PAR 'Rapid.CalculateDimensions.RapidClearance'&amp;nbsp; ".6"&lt;BR /&gt;EDIT PAR 'Rapid.CalculateDimensions.PlungeClearance'&amp;nbsp; ".1"&lt;BR /&gt;EDIT TOOLPATH SAFEAREA CALCULATE_DIMENSIONS&lt;BR /&gt;LEADS ACCEPT&lt;BR /&gt;//Import Reference Project To Use Toolpaths From&lt;BR /&gt;MACRO PAUSE "Import Reference Project"&lt;BR /&gt;PROJECT IMPORT PROJSELECTOR&lt;BR /&gt;MACRO PAUSE "Delete Reference Model Then Click Resume"&lt;BR /&gt;DELETE LEVEL EMPTY&lt;BR /&gt;DELETE NCPROGRAM ALL&lt;BR /&gt;ACTIVATE Workplane "Top"&lt;BR /&gt;INVALIDATE TOOLPATH ALL YES&lt;BR /&gt;FOREACH tp IN folder('toolpath') {&lt;BR /&gt;$tp.Workplane = $Workplane&lt;BR /&gt;}&lt;BR /&gt;FOREACH tp IN folder('toolpath') {&lt;BR /&gt;$tp.Block = $Block&lt;BR /&gt;}&lt;BR /&gt;//Sets All Toolpaths to "Top" Workplane and add basic thickness to all toolpaths&lt;BR /&gt;DIALOGS MESSAGE OFF&lt;BR /&gt;DIALOGS ERROR OFF&lt;BR /&gt;FOREACH tp IN FOLDER('Toolpath') {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ACTIVATE TOOLPATH $tp.Name&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ACTIVATE Workplane "Top"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;EDIT TOOLPATH ; REAPPLYFROMGUI&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;BATCH PROCESS&lt;BR /&gt;INVALIDATE TOOLPATH ALL YES&lt;BR /&gt;DELETE WORKPLANE ALL&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;Macro Pause "Double Check Center"&lt;BR /&gt;FORM BLOCK&lt;/P&gt;</description>
      <pubDate>Thu, 01 Mar 2018 17:30:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7820231#M22836</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-01T17:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Import Model Macro Suggestions</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7821941#M22837</link>
      <description>&lt;P&gt;FORM BLOCK and BLOCK ACCEPT are not necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What do you mean by "Macro Pause "Double Check Center""?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If this is to manually check if the block positive and negative values match, this might be a handy macro:&lt;/P&gt;&lt;PRE&gt;//get block dimensions
REAL xmin = ROUND ($block.limits.xmin, 4)
REAL xmax = ROUND ($block.limits.xmax, 4)
REAL ymin = ROUND ($block.limits.ymin, 4)
REAL ymax = ROUND ($block.limits.ymax, 4)

//make min values positive
REAL xminpositive = ($xmin * -1)
REAL yminpositive = ($ymin * -1)

//if positive and negative values match
IF $xmax == $xminpositive AND $ymax == $yminpositive {
MESSAGE INFO "X &amp;amp; Y are in center"
// if values don't match
} ELSE {
MESSAGE INFO "NOT CENTERED!"
FORM BLOCK
}&lt;/PRE&gt;&lt;P&gt;Glenn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 09:31:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7821941#M22837</guid>
      <dc:creator>GlennM.MCAM</dc:creator>
      <dc:date>2018-03-02T09:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import Model Macro Suggestions</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7822958#M22838</link>
      <description>&lt;P&gt;Owner still wants a Visual/Manual check by the programmer but I love this addition thank you Glenn for the critique. Do you need DIALOGS MESSAGE ON and DIALOGS ERROR ON at the end or does it reset when the Macro ends? Wish I could get the "Top" workplane to fully replace/delete the previous "Top_1" workplane without batch processing and invalidating the toolpaths.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Created by Kodi Fanello &amp;amp; Community&lt;BR /&gt;DIALOGS MESSAGE OFF&lt;BR /&gt;STRING Filename = ""&lt;BR /&gt;$Filename = FILESELECT "Select file"&lt;BR /&gt;IMPORT MODEL $filename&lt;BR /&gt;DIALOGS MESSAGE ON&lt;BR /&gt;ROTATE TRANSFORM ISO1&lt;BR /&gt;DELETE WORKPLANE ALL&lt;BR /&gt;EDIT BLOCK TOLERANCE ".01"&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK LIMITTYPE MODEL&lt;BR /&gt;EDIT PAR powermill.Options.Block.UseReferenceModel 1&lt;BR /&gt;EDIT BLOCKTYPE BOX&lt;BR /&gt;EDIT BLOCK COORDINATE NAMED&lt;BR /&gt;DRAW BLOCK&lt;BR /&gt;EDIT BLOCK DRAWMODE 25&lt;BR /&gt;EDIT BLOCK ALL UNLOCK&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;MODE WORKPLANE_CREATE ; INTERACTIVE BLOCK&lt;BR /&gt;MACRO PAUSE "Choose a point on the block"&lt;BR /&gt;MODE WORKPLANE_EDIT START "1"&lt;BR /&gt;MODE WORKPLANE_EDIT NAME "Top"&lt;BR /&gt;MODE WORKPLANE_EDIT SWAP_AXES&lt;BR /&gt;MACRO PAUSE "Choose Axes Orientation"&lt;BR /&gt;MODE WORKPLANE_EDIT FINISH ACCEPT&lt;BR /&gt;ACTIVATE Workplane "Top"&lt;BR /&gt;EDIT BLOCK COORDINATE NAMED&lt;BR /&gt;EDIT BLOCK NAMEDWORKPLANE "Top"&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.0"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;EDIT BLOCK ZMAX "0.001"&lt;BR /&gt;EDIT BLOCK ZMAX LOCK&lt;BR /&gt;EDIT BLOCK ZMIN LOCK&lt;BR /&gt;EDIT BLOCK RESETLIMIT "0.26"&lt;BR /&gt;EDIT BLOCK RESET&lt;BR /&gt;EDIT TOOLPATH LEADS RAISEFORM&lt;BR /&gt;EDIT TOOLPATH LEADS PAGE RAPIDMOVES&lt;BR /&gt;EDIT TOOLPATH SAFEAREA MEASURE_FROM BLOCK_AND_MODEL&lt;BR /&gt;EDIT PAR 'Rapid.CalculateDimensions.RapidClearance'&amp;nbsp; ".6"&lt;BR /&gt;EDIT PAR 'Rapid.CalculateDimensions.PlungeClearance'&amp;nbsp; ".1"&lt;BR /&gt;EDIT TOOLPATH SAFEAREA CALCULATE_DIMENSIONS&lt;BR /&gt;LEADS ACCEPT&lt;BR /&gt;//Import Reference Project To Use Toolpaths From&lt;BR /&gt;PROJECT IMPORT PROJSELECTOR&lt;BR /&gt;MACRO PAUSE "Delete Reference Model Then Click Resume"&lt;BR /&gt;DELETE LEVEL EMPTY&lt;BR /&gt;DELETE NCPROGRAM ALL&lt;BR /&gt;ACTIVATE Workplane "Top"&lt;BR /&gt;INVALIDATE TOOLPATH ALL YES&lt;BR /&gt;FOREACH tp IN folder('toolpath') {&lt;BR /&gt;$tp.Workplane = $Workplane&lt;BR /&gt;}&lt;BR /&gt;FOREACH tp IN folder('toolpath') {&lt;BR /&gt;$tp.Block = $Block&lt;BR /&gt;}&lt;BR /&gt;//Sets All Toolpaths to "Top" Workplane&lt;BR /&gt;DIALOGS MESSAGE OFF&lt;BR /&gt;DIALOGS ERROR OFF&lt;BR /&gt;FOREACH tp IN FOLDER('Toolpath') {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ACTIVATE TOOLPATH $tp.Name&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ACTIVATE Workplane "Top"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;EDIT TOOLPATH ; REAPPLYFROMGUI&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;BATCH PROCESS&lt;BR /&gt;INVALIDATE TOOLPATH ALL YES&lt;BR /&gt;DELETE WORKPLANE ALL&lt;BR /&gt;//get block dimensions&lt;BR /&gt;REAL xmin = ROUND ($block.limits.xmin, 4)&lt;BR /&gt;REAL xmax = ROUND ($block.limits.xmax, 4)&lt;BR /&gt;REAL ymin = ROUND ($block.limits.ymin, 4)&lt;BR /&gt;REAL ymax = ROUND ($block.limits.ymax, 4)&lt;BR /&gt;&lt;BR /&gt;//make min values positive&lt;BR /&gt;REAL xminpositive = ($xmin * -1)&lt;BR /&gt;REAL yminpositive = ($ymin * -1)&lt;BR /&gt;&lt;BR /&gt;//if positive and negative values match&lt;BR /&gt;IF $xmax == $xminpositive AND $ymax == $yminpositive {&lt;BR /&gt;MESSAGE INFO "X &amp;amp; Y Are On Center"&lt;BR /&gt;// if values don't match&lt;BR /&gt;} ELSE {&lt;BR /&gt;MESSAGE INFO "NOT CENTERED!"&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;}&lt;BR /&gt;FORM BLOCK&lt;BR /&gt;DIALOGS MESSAGE ON&lt;BR /&gt;DIALOGS ERROR ON&lt;/P&gt;</description>
      <pubDate>Fri, 02 Mar 2018 16:18:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7822958#M22838</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-02T16:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Import Model Macro Suggestions</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7891305#M22839</link>
      <description>&lt;P&gt;I have been using your macro and trying to lean a little&amp;nbsp; macro programing. I have added creating a feature set and it works great if there is hole in the model but I would like the macro to skip it if no holes exist. is there a way to do that. I tried if and else with no luck.&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;TRING output_model = ''&lt;BR /&gt;IF size($models) == 1 {&lt;BR /&gt;$output_model = $models[0]&lt;BR /&gt;} ELSE {&lt;BR /&gt;$output_model = INPUT ENTITY MODEL "Choose model"&lt;BR /&gt;}&lt;BR /&gt;//print $models[0]&lt;BR /&gt;EDIT MODEL $models[0] SELECT ALL&lt;/P&gt;&lt;P&gt;//CREATE FEATURE SET-----------------------------------------&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;IF HOLES EXIST&lt;/FONT&gt; {&lt;BR /&gt;EDIT FEATURECREATE TYPE HOLE EDIT FEATURECREATE CIRCULAR ON EDIT FEATURECREATE FILTER HOLES EDIT FEATURECREATE TOPDEFINE ABSOLUTE EDIT FEATURECREATE BOTTOMDEFINE ABSOLUTE FORM CANCEL FEATURE&lt;BR /&gt;EDIT FEATURECREATE HOLES FIXED ON FORM CREATEHOLE&lt;BR /&gt;EDIT FEATURECREATE CREATEHOLES&lt;BR /&gt;FORM CANCEL CREATEHOLE&lt;BR /&gt;}&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;Else{&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 15:20:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/import-model-macro-suggestions/m-p/7891305#M22839</guid>
      <dc:creator>scott.sides</dc:creator>
      <dc:date>2018-03-28T15:20:01Z</dc:date>
    </item>
  </channel>
</rss>

