<?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: Create folder within toolpath explorer's folder in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13162469#M806</link>
    <description>&lt;P&gt;exchange this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;//you whant to create the subfolder only if the main folder exists(removed the not)
IF folder_exists("Toolpath\" + $limits ) {	
	string $path = 'Toolpath\' + $limits
	CREATE FOLDER ${path} ${R}
    CREATE FOLDER ${path} ${S}
}&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 20 Nov 2024 10:14:31 GMT</pubDate>
    <dc:creator>icse</dc:creator>
    <dc:date>2024-11-20T10:14:31Z</dc:date>
    <item>
      <title>Create folder within toolpath explorer's folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13162425#M805</link>
      <description>&lt;P&gt;Hi all !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I'm tring to make a macro which will create some folders eg. ROUGH &amp;amp; FINISH in each folder which are already available in toolpath explorer.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Like I have 3 folders named Electrode 01,Electrode 02,Electrode 03.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I need to create ROUGH &amp;amp; FINISH folders in all 3 folders , which I already have.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;please have a look on my macro and&amp;nbsp; point me in right direction.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;REAL lengthx = ""
REAL lengthy = ""
REAL lengthz = ""
STRING limits = ""
STRING R = 'ROUGH'
STRING F = 'FINISH'


FOREACH ll IN FOLDER ('LEVEL') {
UNDRAW LEVEL ALL DRAW LEVEL $ll.name
EDIT LEVEL $ll.name SELECT SURFACE
FORM BLOCK
EDIT BLOCK RESETLIMIT "0"
DELETE BLOCK
EDIT BLOCK RESET
DRAW BLOCK
DELETE SCALE
$lengthx = $widget("RoughBlock.LimitFrame.LenX").value
$lengthy = $widget("RoughBlock.LimitFrame.LenY").value
$lengthz = $widget("RoughBlock.LimitFrame.LenZ").value
$limits = $ll.name + " _ " + round($lengthx, 0) + " X " + round($lengthy, 0) + " X " +  round($lengthZ, 0)

BLOCK ACCEPT

IF NOT folder_exists("Toolpath\" + $limits ) {
	CREATE FOLDER "Toolpath" $limits + '\' + '$R'
        CREATE FOLDER "Toolpath" $limits + '\' + '$F'

}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 10:00:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13162425#M805</guid>
      <dc:creator>karan30782</dc:creator>
      <dc:date>2024-11-20T10:00:32Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create folder within toolpath explorer's folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13162469#M806</link>
      <description>&lt;P&gt;exchange this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;//you whant to create the subfolder only if the main folder exists(removed the not)
IF folder_exists("Toolpath\" + $limits ) {	
	string $path = 'Toolpath\' + $limits
	CREATE FOLDER ${path} ${R}
    CREATE FOLDER ${path} ${S}
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Nov 2024 10:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13162469#M806</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-11-20T10:14:31Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create folder within toolpath explorer's folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13162500#M807</link>
      <description>&lt;P&gt;Not working ..... BRO&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 10:32:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13162500#M807</guid>
      <dc:creator>karan30782</dc:creator>
      <dc:date>2024-11-20T10:32:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create folder within toolpath explorer's folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13162898#M808</link>
      <description>&lt;P&gt;can you show me the error message?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 13:07:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13162898#M808</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-11-20T13:07:11Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create folder within toolpath explorer's folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13163097#M809</link>
      <description>&lt;P&gt;It doesn't show any error ,but not any folder nor sub folder created.&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="1.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1436377i02F1EE09FB7653DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.JPG" alt="1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 14:16:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13163097#M809</guid>
      <dc:creator>karan30782</dc:creator>
      <dc:date>2024-11-20T14:16:37Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create folder within toolpath explorer's folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13163111#M810</link>
      <description>&lt;P&gt;ah now i see... i thougth the base folders are already existant as you wrote in your original post.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this then:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;REAL lengthx = ""
REAL lengthy = ""
REAL lengthz = ""
STRING limits = ""
STRING R = 'ROUGH'
STRING F = 'FINISH'


FOREACH ll IN FOLDER ('LEVEL') {
	UNDRAW LEVEL ALL DRAW LEVEL $ll.name
	EDIT LEVEL $ll.name SELECT SURFACE
	FORM BLOCK
	EDIT BLOCK RESETLIMIT "0"
	DELETE BLOCK
	EDIT BLOCK RESET
	DRAW BLOCK
	DELETE SCALE
	$lengthx = $widget("RoughBlock.LimitFrame.LenX").value
	$lengthy = $widget("RoughBlock.LimitFrame.LenY").value
	$lengthz = $widget("RoughBlock.LimitFrame.LenZ").value
	$limits = $ll.name + " _ " + round($lengthx, 0) + " X " + round($lengthy, 0) + " X " +  round($lengthZ, 0)
	
	BLOCK ACCEPT
	
	CREATE FOLDER 'Toolpath' ${limits}
	IF folder_exists("Toolpath\" + $limits ) {	
		string $path = 'Toolpath\' + $limits
		CREATE FOLDER ${path} ${R}
		CREATE FOLDER ${path} ${F}
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 14:26:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13163111#M810</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-11-20T14:26:04Z</dc:date>
    </item>
    <item>
      <title>Betreff: Create folder within toolpath explorer's folder</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13163152#M811</link>
      <description>&lt;P&gt;It's fantastically working !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you !!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 03:28:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/create-folder-within-toolpath-explorer-s-folder/m-p/13163152#M811</guid>
      <dc:creator>karan30782</dc:creator>
      <dc:date>2024-11-21T03:28:11Z</dc:date>
    </item>
  </channel>
</rss>

