<?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: Macro to create and populate a folder in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890487#M4189</link>
    <description>&lt;P&gt;i'll keep thinking too. lmk what the debugger shows you. maybe&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12685679"&gt;@Sean571&lt;/a&gt;&amp;nbsp; has an idea??&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2023 13:09:34 GMT</pubDate>
    <dc:creator>TK.421</dc:creator>
    <dc:date>2023-04-12T13:09:34Z</dc:date>
    <item>
      <title>Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888561#M4180</link>
      <description>&lt;P&gt;Good Afternoon All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying to get this macro to run. Seems like it should be fairly simple, but can't wrap my Peabrain around it.&lt;/P&gt;&lt;P&gt;The first block runs, the second block runs, can't get it to run as a whole. Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FUNCTION Main()&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;CREATE FOLDER "Toolpath" ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ACTIVATE FOLDER "Toolpath\Folder1"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RENAME FOLDER "Toolpath\Folder1"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;FOREACH toolpath IN folder ("TOOLPATH")&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STRING $Path = dirname(pathname(toolpath))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF $Path == 'Toolpath' {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EDIT FOLDER ; INSERT $toolpath LAST&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DEACTIVATE FOLDER&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 17:45:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888561#M4180</guid>
      <dc:creator>Beta_Librae</dc:creator>
      <dc:date>2023-04-11T17:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888599#M4181</link>
      <description>&lt;P&gt;put everything inside your main()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FUNCTION Main()&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;CREATE FOLDER "Toolpath" ;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ACTIVATE FOLDER "Toolpath\Folder1"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;RENAME FOLDER "Toolpath\Folder1"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; FOREACH toolpath IN folder ("TOOLPATH")&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; STRING $Path = dirname(pathname(toolpath))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IF $Path == 'Toolpath' {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EDIT FOLDER ; INSERT $toolpath LAST&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DEACTIVATE FOLDER&lt;/P&gt;
&lt;P&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 18:02:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888599#M4181</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2023-04-11T18:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888664#M4182</link>
      <description>&lt;P&gt;Thanks for the reply. I thought it was the brackets but couldn't get it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now it's holding up on line 7.&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="cnc_0-1681237867939.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1201120iF765597ECC8B3E08/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cnc_0-1681237867939.png" alt="cnc_0-1681237867939.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wants to call the folder "STRING"?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 18:32:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888664#M4182</guid>
      <dc:creator>Beta_Librae</dc:creator>
      <dc:date>2023-04-11T18:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888765#M4183</link>
      <description>&lt;P&gt;ran it through the debugger. you have to take out the rename folder command in there &amp;amp; then use DOCOMMAND to create and activate it with a specific name.&amp;nbsp; i tried the below and it works&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;FUNCTION Main()  {
	STRING fName = INPUT "Enter Folder Name: "
	STRING myCmd = "CREATE FOLDER" + '"Toolpath"' + $fName
	DOCOMMAND $myCmd

	$myCmd = "ACTIVATE FOLDER " + '"Toolpath\' + $fName + '"'
	DOCOMMAND $myCmd



	FOREACH tp IN folder ("TOOLPATH")  {
		STRING $Path = dirname(pathname(tp))
		IF $Path == 'Toolpath' {
			EDIT FOLDER ; INSERT $tp LAST
		}
	}
	DEACTIVATE FOLDER
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 19:12:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888765#M4183</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2023-04-11T19:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888862#M4184</link>
      <description>&lt;P&gt;Hate to be a&amp;nbsp;pain in the ass, but now it's holding up on line 4.&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="cnc_0-1681241500916.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1201155i901FC42B4A1A57EE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cnc_0-1681241500916.png" alt="cnc_0-1681241500916.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If it worked for you, I'm not sure what I'm doing wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Running it through the ribbon, and the macro list. Same result.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 19:44:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888862#M4184</guid>
      <dc:creator>Beta_Librae</dc:creator>
      <dc:date>2023-04-11T19:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888912#M4185</link>
      <description>&lt;P&gt;hmmmm. i just ran it again and it ran fine. did you copy &amp;amp; paste everything that was in there?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 20:02:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11888912#M4185</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2023-04-11T20:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890355#M4186</link>
      <description>&lt;P&gt;Hey, sorry, I'd left for the day.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sure I did copy everything. Deleted it all and copied again. This is what I've got.&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="cnc_0-1681300816420.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1201426i0D68104306312E17/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cnc_0-1681300816420.png" alt="cnc_0-1681300816420.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Closed my session, reopened, and tried again. I got the same result.&lt;/P&gt;&lt;P&gt;Running it out of the "Choose"&amp;nbsp; button. it gets as far as naming the folder, but doesn't create it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cnc_1-1681301068309.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1201430i8FDA4501604D6676/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cnc_1-1681301068309.png" alt="cnc_1-1681301068309.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Holds up here again on line 4?&lt;/P&gt;&lt;P&gt;I did try running it again through the macro list.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cnc_2-1681301419302.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1201433iA7C800DD3127907A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cnc_2-1681301419302.png" alt="cnc_2-1681301419302.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Same result.&lt;/P&gt;&lt;P&gt;I'm running 2023 Ultimate without the updates. Don't think that matters though, the macro should run on much older versions too.&lt;/P&gt;&lt;P&gt;I really appreciate the help. Any other suggestions would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 12:17:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890355#M4186</guid>
      <dc:creator>Beta_Librae</dc:creator>
      <dc:date>2023-04-12T12:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890440#M4187</link>
      <description>&lt;P&gt;huh... i'm at a loss! I retyped the whole thing and ran it again &amp;amp; i have success. run it through the macro debugger step by step and see what you get&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;try something simple to see if it runs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;STRING&lt;/SPAN&gt; &lt;SPAN&gt;myCmd&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;"MESSAGE INFO 'asdfasdfasdf'"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;DOCOMMAND&lt;/SPAN&gt; &lt;SPAN&gt;$myCmd&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Apr 2023 12:52:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890440#M4187</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2023-04-12T12:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890478#M4188</link>
      <description>&lt;P&gt;Ok, thanks for the help, I'll do that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May the Force be with you!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 13:07:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890478#M4188</guid>
      <dc:creator>Beta_Librae</dc:creator>
      <dc:date>2023-04-12T13:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890487#M4189</link>
      <description>&lt;P&gt;i'll keep thinking too. lmk what the debugger shows you. maybe&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12685679"&gt;@Sean571&lt;/a&gt;&amp;nbsp; has an idea??&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 13:09:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890487#M4189</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2023-04-12T13:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890500#M4190</link>
      <description>&lt;P&gt;Running it through now. Same result. It holds up on line 4.&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="cnc_0-1681305211612.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1201454iFB391A3F76949F97/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cnc_0-1681305211612.png" alt="cnc_0-1681305211612.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 13:13:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890500#M4190</guid>
      <dc:creator>Beta_Librae</dc:creator>
      <dc:date>2023-04-12T13:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890514#M4191</link>
      <description>&lt;P&gt;ah-HA! it does not like the space in the folder name. put an underscore or hyphen or camel case (drillingBottom) and you'll be golden&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 13:17:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890514#M4191</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2023-04-12T13:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890562#M4192</link>
      <description>&lt;P&gt;OH YAA!!&lt;/P&gt;&lt;P&gt;That's funny. Silly thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for your help. Greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 13:31:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11890562#M4192</guid>
      <dc:creator>Beta_Librae</dc:creator>
      <dc:date>2023-04-12T13:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11892768#M4193</link>
      <description>&lt;P&gt;I don't know why you are using DOCOMMAND as the CREATE FOLDER command accepts variables.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 08:33:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11892768#M4193</guid>
      <dc:creator>urizenYHS3W</dc:creator>
      <dc:date>2023-04-13T08:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11892986#M4194</link>
      <description>It does? I didn’t know that. Has it always accepted variables?&lt;BR /&gt;</description>
      <pubDate>Thu, 13 Apr 2023 10:19:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11892986#M4194</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2023-04-13T10:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11893080#M4195</link>
      <description>&lt;P&gt;Since 2012.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DOCOMMAND was add in the first instance to handle any commands that didn't accept variables. But quickly the most of commands were updated to allow variables. There may be a handful left where DOCOMMAND is needed. As I recall most uses originally were to handle something like PRINT = Block.Limits.$par because people didn't know that you could do PRINT = Block.Limits[$par]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 11:18:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11893080#M4195</guid>
      <dc:creator>urizenYHS3W</dc:creator>
      <dc:date>2023-04-13T11:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11893380#M4196</link>
      <description>&lt;P&gt;Interesting, I didnt know that!&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4221456"&gt;@Beta_Librae&lt;/a&gt;&amp;nbsp; you can shorten your code using this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;STRING&lt;/SPAN&gt; &lt;SPAN&gt;fName&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;INPUT&lt;/SPAN&gt; &lt;SPAN&gt;"folder name"&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;CREATE FOLDER &lt;/SPAN&gt;&lt;SPAN&gt;"Toolpath"&lt;/SPAN&gt; &lt;SPAN&gt;$fName &lt;/SPAN&gt;&lt;SPAN&gt;ACTIVATE FOLDER ${&lt;/SPAN&gt;&lt;SPAN&gt;"Toolpath\"&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;$fName&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thanks for the history lesson&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4282186"&gt;@urizenYHS3W&lt;/a&gt;&amp;nbsp;!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Apr 2023 13:01:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11893380#M4196</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2023-04-13T13:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11896218#M4197</link>
      <description>&lt;P&gt;Good Morning!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the update.&lt;/P&gt;&lt;P&gt;I was happy with the code that you'd provided me first. Wasn't gonna change it because I'd created for most of the folders in the explorer. The only reason I did was because it gave the ability to use spaces in the name. That was nice.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was a group of macros that I'd come across on here years ago. Can't remember who posted it. It gave the ability to create and name folders. I wanted to take it a step further and have it drag unfoldered entities into that named folder. With your help I think it works pretty well, so I'd like to share it all on here now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run it from a macro button on the ribbon called "Choose"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cnc_0-1681475159529.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1202398i09D347084F2CBCC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cnc_0-1681475159529.png" alt="cnc_0-1681475159529.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully other think it's a cool like I do and get some use out of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:39:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11896218#M4197</guid>
      <dc:creator>Beta_Librae</dc:creator>
      <dc:date>2023-04-14T12:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to create and populate a folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11896228#M4198</link>
      <description>&lt;P&gt;Thanks! I'll add this to my right click menu! I didnt think to try it with spaces; glad to know that works!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 12:43:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-to-create-and-populate-a-folder/m-p/11896228#M4198</guid>
      <dc:creator>TK.421</dc:creator>
      <dc:date>2023-04-14T12:43:58Z</dc:date>
    </item>
  </channel>
</rss>

