<?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: Tool Tree Set-Up Sheet in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7255558#M26630</link>
    <description>&lt;P&gt;Sweet, thank you again. Got it working like we want. you guys are awesome!&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 13:53:27 GMT</pubDate>
    <dc:creator>Scoobyvroom</dc:creator>
    <dc:date>2017-07-26T13:53:27Z</dc:date>
    <item>
      <title>Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7210382#M26612</link>
      <description>&lt;P&gt;I am looking for help to make a macro that will take all of my tools on the tool tree, organize them in numerical order and then export them into a format that is printable. &amp;nbsp;This would be beneficial when I have a multi-program Powermill file, so that the operator only has to look at one tooling list when setting up the machine for all the programs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This info into printable form:&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="2017-07-06 15_19_23-PowerMill Explorer.png" style="width: 429px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/375164iCCD9270C0168E5D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-07-06 15_19_23-PowerMill Explorer.png" alt="2017-07-06 15_19_23-PowerMill Explorer.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 20:31:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7210382#M26612</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-06T20:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7210430#M26613</link>
      <description>&lt;P&gt;Wouldn't it be easier to just screen shot it and print it out?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. get back to work....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S.S. I've been lurking the forums for awhile.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 20:56:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7210430#M26613</guid>
      <dc:creator>Scoobyvroom</dc:creator>
      <dc:date>2017-07-06T20:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7210501#M26614</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;FOREACH tl IN (sort(folder('tool'),'diameter')) {
ORDERSESSION Tool $tl.name FIRST
}
&lt;/PRE&gt;
&lt;P&gt;For exporting to a format that is printable I am not sure about that&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2017 21:37:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7210501#M26614</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2017-07-06T21:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7212096#M26615</link>
      <description>&lt;P&gt;If you want to print something to a txt file use this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt; STRING $PRINTNAME_PATH = "C:\printname.txt"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; STRING $RMDIR = // what do you want to print&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; FILE OPEN $PRINTNAME_PATH FOR WRITE AS PRINTNAME&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; FILE WRITE $RMDIR TO PRINTNAME&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; FILE CLOSE PRINTNAME&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 09:56:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7212096#M26615</guid>
      <dc:creator>LasseFred</dc:creator>
      <dc:date>2017-07-07T09:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7212893#M26616</link>
      <description>&lt;P&gt;You can Export via a macro the list as an Html file and customize this HTML file accroding to your needs. Herewith a sample macro.&amp;nbsp; The Tool Icone is in this case a preview of the tool assembly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the HTML generation the file is open in your favourite browser so you can directly print the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Print preview :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="export_outil.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/375465iF8C755C5600E1B5D/image-size/large?v=v2&amp;amp;px=999" role="button" title="export_outil.jpg" alt="export_outil.jpg" /&gt;&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;You can also make the same, but just with the tool used in the Toolpaths or in an NC program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 14:25:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7212893#M26616</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2017-07-07T14:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7213256#M26617</link>
      <description>&lt;P&gt;I work with the original poster. Your macro works very nicely. Only problem is I don't speak French? I was able to modify it to be readable. I have one issue though when it creates the tool image that it's not creating the images in the folder inside the project. All I end up with is a .html file, with no pictures. Have you seen this before? Tried it before editing, so even the original did this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all your time!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 16:37:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7213256#M26617</guid>
      <dc:creator>Scoobyvroom</dc:creator>
      <dc:date>2017-07-07T16:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7213368#M26618</link>
      <description>&lt;P&gt;Yes I think I know the origin of your issue: You certainly have some space in the path of your Project.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will find herewith a modified version to manage this problem.&amp;nbsp; In the same time I have also made a small modification on the definition of the Image size. I'm using Chrome but with IE the Size definition is not correct. So in the Macro, you will have in the Comment the code for Chrome ( Firefox ?) And IE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the French ... Google Translate.Google.com&amp;nbsp; will be your friend .. There is not so many sentence and comment to translate.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 17:39:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7213368#M26618</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2017-07-07T17:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7218895#M26619</link>
      <description>&lt;P&gt;is there a quick way to make that HTML tool-list macro to work with the tools of the NC-Programs?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 09:40:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7218895#M26619</guid>
      <dc:creator>LasseFred</dc:creator>
      <dc:date>2017-07-11T09:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7219054#M26620</link>
      <description>&lt;P&gt;&lt;SPAN class="short_text"&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Attached&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 11:18:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7219054#M26620</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2017-07-11T11:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7219255#M26621</link>
      <description>&lt;P&gt;Could be much more simple &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;.. Just&amp;nbsp; three lines to modify if it's just for one NCProgram&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Replace :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FOREACH tp IN folder('Tool') {&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;by&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FOREACH Tl IN list_nctools(entity('ncprogram', Selected_NCP)) {&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ENTITY $Tp=entity('Tool',$Tl)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where Selected_NCP&amp;nbsp; is the selected NCProgram. You have the choice to select this variable via :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FUNCTION Main(STRING $Selected_NCP) {&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If you want to launch the macro via the ncprogram.xml user menu .. Or Something like&amp;nbsp; :&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;STRING Selected_NCP = entity('ncprogram','').name&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If you want to generate the list for the active NCProgram.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 12:32:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7219255#M26621</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2017-07-11T12:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7219347#M26622</link>
      <description>&lt;P&gt;Only for NC Program selected. &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;
&lt;P&gt;I understand that he wants to get a complete list of tools used in the project&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 13:05:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7219347#M26622</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2017-07-11T13:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7219422#M26623</link>
      <description>&lt;P&gt;It was a complete list of the NC-Programs i asked for. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 13:29:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7219422#M26623</guid>
      <dc:creator>LasseFred</dc:creator>
      <dc:date>2017-07-11T13:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7219559#M26624</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3968603"&gt;@LasseFred&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can use the summary_project&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to export all or the selected nc programs, and you can setup your template to export what you relay need ( if it is only the tools)&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 14:02:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7219559#M26624</guid>
      <dc:creator>rui_rita</dc:creator>
      <dc:date>2017-07-11T14:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7221438#M26625</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4003219"&gt;@rui_rita&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the summary_project for another thing.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but yes it can definitely be used to that purpose....&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 07:03:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7221438#M26625</guid>
      <dc:creator>LasseFred</dc:creator>
      <dc:date>2017-07-12T07:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7253684#M26626</link>
      <description>&lt;P&gt;Thanks for the help! I've got it 95% what I want. I was trying to get an argument to check tool number, and if it's zero skip that tool. I am missing something because it ends up stuck in some sort of loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FOREACH tl IN reverse(sort(folder('tool'),'number')) {
	IF Tool.Number=0{
	// Check tool number. If 0 skip
		CONTINUE
}
ORDERSESSION Tool $tl.name FIRST
}&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Jul 2017 20:32:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7253684#M26626</guid>
      <dc:creator>Scoobyvroom</dc:creator>
      <dc:date>2017-07-25T20:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7253826#M26627</link>
      <description>&lt;P&gt;To test if a&amp;nbsp;value is equal &amp;nbsp;to something you must use '&lt;STRONG&gt;==&lt;/STRONG&gt;' if the value is different '&lt;STRONG&gt;!=&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;// Check tool number. If 0
IF $tl.Number.Value == 0 {

} ELSE {

}&lt;/PRE&gt;&lt;P&gt;In your case you can also just test &amp;nbsp;if the tool have a number.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;IF $tl.Number.UserDefined {

} ELSE {

}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 21:45:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7253826#M26627</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-25T21:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7255322#M26628</link>
      <description>&lt;P&gt;Ah! Thank you sir. Alright I got it to do everything I need... Almost...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only issue I have is that some of our tool names have a "/" forward slash in them. We have some tools that have fraction endmill descriptions(1/4 Endmill). So we have some tool names with a forward slash in them. Or like our threadmills, are made for both a 8/10-32 thread pitch.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These forward slashes mess with the Toollist. I think it has to do with the creation of the .jpg file. It populates the data in the table but the link to the picture is broken. In the folder there is no picture. I am not sure how to proceed with fixing this problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;//-------------------------------------------------------------------------------------
// Ouvre un fichier pour écrire le tableau outil (Type HTML)
// Liste tous les outils
//
// Modif 06/06/2016 : Export via ecriture fichier
// Modif 06/07/2017 : Gestion des espaces dans les noms des projets
//					: Format pour Chrome ou IE
// Modify: 7/20/2017: Added code to organize tools in correct order. All changes marked V1 CBJ
// Modify: 7/26/2017: Added continue code $tp must be a french thing? All changes marked V2 CBJ
//--------------------------------------------------------------------------------------

DIALOGS MESSAGE OFF
DIALOGS ERROR OFF
ECHO OFF DCPDEBUG UNTRACE COMMAND ACCEPT

//Check the name of the project and if it have been already save
STRING $projectName = project_pathname(1)

STRING Msg = ""
STRING Cmd = ""

IF $projectName == "" {
$Msg = "Unable to create documents for export, you must first save the project!"
MESSAGE ERROR $Msg
MACRO ABORT 
}

// Création d'un répertoire Export_ExportTool dans le Projet en cours
// Répertoire Export ExportTool
STRING $ExportToolTempDir = project_pathname(0) + "/Tool_List"
MKDIR $ExportToolTempDir
STRING $ExportToolImg = ''  
STRING $ToolName = ''
STRING $ModiToolName = ''

// Definition Fichier Html  
STRING $Ligne=''
STRING $Fichier=$ExportToolTempDir+'/Tool_List.html'

//Ouverture fichier
FILE OPEN $Fichier FOR WRITE AS filename

$Ligne = "&amp;lt;html&amp;gt;"
FILE WRITE $Ligne TO filename
$Ligne = "&amp;lt;head&amp;gt;"
FILE WRITE $Ligne TO filename
$Ligne = "&amp;lt;title&amp;gt;Tool List&amp;lt;/title&amp;gt;"
FILE WRITE $Ligne TO filename
$Ligne = "&amp;lt;/head&amp;gt;"
FILE WRITE $Ligne TO filename
$Ligne = "&amp;lt;body lang=FR&amp;gt;"
FILE WRITE $Ligne TO filename
$Ligne = "&amp;lt;H1&amp;gt;"+$projectName + "&amp;lt;/H1&amp;gt;"
FILE WRITE $Ligne TO filename
// Reorders Tools By Tool Number
FOREACH tl IN reverse(sort(folder('tool'),'number')) {
// Orders tools in project, added reverse to change order V1	
ORDERSESSION Tool $tl.name FIRST
}

$Ligne = "&amp;lt;table border=1 cellspacing=1 cellpadding=1&amp;gt;"
FILE WRITE $Ligne TO filename


// Première ligne
$Ligne = "&amp;lt;TR&amp;gt;"
FILE WRITE $Ligne TO filename
$Ligne = "&amp;lt;TD&amp;gt;&amp;lt;H3&amp;gt;Image&amp;lt;/H3&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;H3&amp;gt;Name&amp;lt;/H3&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;H3&amp;gt;Number&amp;lt;/H3&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;H3&amp;gt;Diameter&amp;lt;/H3&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;H3&amp;gt;Type&amp;lt;/H3&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;H3&amp;gt;Corner Radius&amp;lt;/H3&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;H3&amp;gt;Flute Length&amp;lt;/H3&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;H3&amp;gt;Stick Out Length&amp;lt;/H3&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;H3&amp;gt;Tool Overall Length&amp;lt;/H3&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;H3&amp;gt;Holder&amp;lt;/H3&amp;gt;&amp;lt;/TD&amp;gt;"
FILE WRITE $Ligne TO filename
$Ligne = "&amp;lt;/TR&amp;gt;"
FILE WRITE $Ligne TO filename

/// Liste tous les outils
FOREACH tp IN folder('Tool') {
	
		IF $tp.Number.value == 0 {
			CONTINUE
			//Checks tool number, if zero skips V2
			}
	
	// Depuis les Outils
$Ligne = "&amp;lt;TR&amp;gt;"
FILE WRITE $Ligne TO filename
        // Image
        
        $Ligne = "&amp;lt;TD&amp;gt;"
        FILE WRITE $Ligne TO filename
        $Ligne = '&amp;lt;div align="' + 'center"' + '&amp;gt;'
        FILE WRITE $Ligne TO filename
        
        // CREATION IMAGE
        $ToolName = $tp.name
		$ModiToolName=REPLACE($ToolName," ","_")
        $ExportToolImg = $ModiToolName + ".jpg" 
		
        $ExportToolImg = REPLACE($ExportToolImg," ","_")
		$ExportToolImg = $ExportToolTempDir + "/" + $ExportToolImg
	    $Cmd='FORM RAISE TOOLASSPREVIEWFORM "' + $ToolName + '"'
        DOCOMMAND $Cmd
     
        /// WAIT FORM Indispensable car sinon la Macro plante 
        //  Il faut attendre la forme pour executer la suite
        /// MACRO PAUSE "Outil $ToolName : $ExportToolImg"
        WAIT FORM
        
        // Generation Tool Preview
	    $Cmd='EXPORT TOOLASSEMBLYPREVIEW FILE "' + $ExportToolImg  +'"'
        DOCOMMAND $Cmd
        
        YES
        
        FORM CANCEL TOOLASSPREVIEWFORM
        
        // DEFINITION IMAGE
		// Pour Chrome
        $Ligne = '&amp;lt;img src="./' + $ModiToolName + ".jpg" + '" alt="' + $ToolName + '"' + ' height="' + '10%"' +' /&amp;gt;'
		// Pour IE
		//$Ligne = '&amp;lt;img src="./' + $ModiToolName + ".jpg" + '" alt="' + $ToolName + '"' + ' height="' + '100p"' +' /&amp;gt;'
        FILE WRITE $Ligne TO filename
        
	$Ligne = "&amp;lt;/div&amp;gt;"
	FILE WRITE $Ligne TO filename
        $Ligne = "&amp;lt;/TD&amp;gt;"
        FILE WRITE $Ligne TO filename
        	
        // Infos Outils
	$Ligne = "&amp;lt;TD&amp;gt;"+$tp.name + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" +$tp.Number.Value + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + round($tp.Diameter,3) + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + $tp.Type+ "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + round($tp.TipRadius,3) + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + round($tp.Length,3) + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + round($tp.Overhang,3) + "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + round(gauge_length($tp),3)+ "&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;" + $tp.HolderName  + "&amp;lt;/TD&amp;gt;"
	FILE WRITE $Ligne TO filename
$Ligne = "&amp;lt;/TR&amp;gt;"
FILE WRITE $Ligne TO filename

	
}

$Ligne = "&amp;lt;/table&amp;gt;"
FILE WRITE $Ligne TO filename
$Ligne = "&amp;lt;/body&amp;gt;"
FILE WRITE $Ligne TO filename
$Ligne = "&amp;lt;/html&amp;gt;"
FILE WRITE $Ligne TO filename

FILE CLOSE filename

MESSAGE INFO "Export Finished: $Fichier"
// Ouverture fichier avec application associée
ole fileaction 'open' $Fichier&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 12:53:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7255322#M26628</guid>
      <dc:creator>Scoobyvroom</dc:creator>
      <dc:date>2017-07-26T12:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7255378#M26629</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's a minor problem, I think you just have in your code to &lt;STRONG&gt;&lt;U&gt;add after&lt;/U&gt;&lt;/STRONG&gt; the ligne : &lt;STRONG&gt;$ModiToolName=REPLACE($ToolName," ","_")&lt;/STRONG&gt;, the same type of correction with the code :&lt;STRONG&gt;&amp;nbsp; $ModiToolName=REPLACE($ModiToolName,"/","-") &lt;/STRONG&gt;to create a correct path for your picture file.&lt;/P&gt;&lt;P&gt;Add also the line &lt;STRONG&gt;$ModiToolName=REPLACE($ModiToolName,"\","-")&amp;nbsp; &lt;/STRONG&gt;to anticipate also the problem with the backslash character.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 13:08:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7255378#M26629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-26T13:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7255558#M26630</link>
      <description>&lt;P&gt;Sweet, thank you again. Got it working like we want. you guys are awesome!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 13:53:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7255558#M26630</guid>
      <dc:creator>Scoobyvroom</dc:creator>
      <dc:date>2017-07-26T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Tool Tree Set-Up Sheet</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7255771#M26631</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm also currently working on a new version of this macro, if someone is interest, &lt;U&gt;Modifications :&lt;/U&gt;&lt;BR /&gt;• Exports also the preview for turning Tool ( I'm using PMILL 2017) this problem is perhaps solved in 2018 ?&lt;BR /&gt;• Exports turning tool and milling tool in realistic mode&lt;BR /&gt;• Exports the Milling tool in a horizontal orientation&lt;BR /&gt;• Exports Folder Information&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Herefater a preview of the result&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Liste_Tool.jpg" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/382510i7F3C86FA36427F5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="Liste_Tool.jpg" alt="Liste_Tool.jpg" /&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, 26 Jul 2017 14:56:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/tool-tree-set-up-sheet/m-p/7255771#M26631</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2017-07-26T14:56:43Z</dc:date>
    </item>
  </channel>
</rss>

