<?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: Edit Cutting Data Macro Help in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998557#M1274</link>
    <description>&lt;P&gt;So I have two indexes, one for the data type and one for the operation, and they're outputting the correct values,&lt;/P&gt;&lt;P&gt;I'm just unsure how to put both those values on the same line as&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EDIT TOOL FEEDSPEED &lt;/SPAN&gt;&lt;SPAN&gt;SELECT.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The code below fails.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {

	reset localvars
	DIALOGS MESSAGE OFF
	DIALOGS ERROR OFF
	GRAPHICS LOCK
	
	if size(explorer_selected_entities()) &amp;lt;= 0 or explorer_selected_entities()[0].RootType != 'tool' {
		return
	}
	
    string list $types = {'Finishing', 'Roughing'}
	int $feedspeedIndexType = INPUT choice $types "Enter Type"
    string list $operations = {'General', 'Slotting', 'Profiling', 'Face Milling', 'Drilling', 'Plunge Milling', 'Copy Milling'}
	int $feedspeedIndex = INPUT choice $operations "Enter Operation"
	
	REAL $speed = INPUT "Enter Cutting Speed"
	REAL $feed = INPUT "Enter Feed/Tooth"
	
	foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {
		 
	EDIT TOOL FEEDSPEED SELECT 0 $feedspeedIndexType + $feedspeedIndex   
	PRINT $feedspeedIndexType
	PRINT $feedspeedIndex  
	EDIT TOOL $t SURFACESPEED $speed
	EDIT TOOL $t FEEDPERTOOTH $feed
		
}	
	DIALOGS MESSAGE ON
	DIALOGS ERROR ON
	GRAPHICS UNLOCK
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2024 18:13:57 GMT</pubDate>
    <dc:creator>evo80</dc:creator>
    <dc:date>2024-09-03T18:13:57Z</dc:date>
    <item>
      <title>Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998093#M1270</link>
      <description>&lt;LI-CODE lang="general"&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {
reset localvars
DIALOGS MESSAGE OFF
	DIALOGS ERROR OFF
	GRAPHICS LOCK
	
	if size(explorer_selected_entities()) &amp;lt;= 0 or explorer_selected_entities()[0].RootType != 'tool' {
		return
	}
    REAL $feedspeed = INPUT "Enter Type &amp;amp; Operation"
	REAL $speed = INPUT "Enter Cutting Speed"
	REAL $feed = INPUT "Enter Feed/Tooth"
		
	foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {
	EDIT TOOL FEEDSPEED SELECT $feedspeed
    EDIT TOOL $t SURFACESPEED $speed
	EDIT TOOL $t FEEDPERTOOTH $feed
		
}	
	DIALOGS MESSAGE ON
	DIALOGS ERROR ON
	GRAPHICS UNLOCK&lt;/LI-CODE&gt;&lt;P&gt;Good Day,&lt;/P&gt;&lt;P&gt;I have this macro which allows me to change the Speeds and Feeds of selected tools.&lt;/P&gt;&lt;P&gt;The only thing I have an issue with is the Type and Operation $feedspeed.&lt;/P&gt;&lt;P&gt;Currently I have to input 0 0 for Finishing General or 0 1 for Finishing Slotting and so on.&lt;/P&gt;&lt;P&gt;What I'd like is to have a drop down with all the Types and Operations to select from, but I'm not entirely sure how to go about doing this, any help would be much appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 14:43:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998093#M1270</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2024-09-03T14:43:11Z</dc:date>
    </item>
    <item>
      <title>Betreff: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998233#M1271</link>
      <description>&lt;P&gt;heres a simple example what you could do:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;string list $operations = {'General', 'Slotting','Profiling', 'Face Milling', 'Drilling', 'Plunge Milling', 'Copy Milling'}

int $feedspeedIndex = INPUT choice $operations "Enter Operation"

	
	
foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {

	EDIT TOOL FEEDSPEED SELECT 0 $feedspeedIndex
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you macro should look something like this then:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {

	reset localvars
	DIALOGS MESSAGE OFF
	DIALOGS ERROR OFF
	GRAPHICS LOCK
	
	if size(explorer_selected_entities()) &amp;lt;= 0 or explorer_selected_entities()[0].RootType != 'tool' {
		return
	}
	
    string list $operations = {'General', 'Slotting','Profiling', 'Face Milling', 'Drilling', 'Plunge Milling', 'Copy Milling'}
	int $feedspeedIndex = INPUT choice $operations "Enter Operation"
	
	REAL $speed = INPUT "Enter Cutting Speed"
	REAL $feed = INPUT "Enter Feed/Tooth"
		
	foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {
	EDIT TOOL FEEDSPEED SELECT 0 $feedspeedIndex
    EDIT TOOL $t SURFACESPEED $speed
	EDIT TOOL $t FEEDPERTOOTH $feed
		
}	
	DIALOGS MESSAGE ON
	DIALOGS ERROR ON
	GRAPHICS UNLOCK
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 15:40:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998233#M1271</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-09-03T15:40:51Z</dc:date>
    </item>
    <item>
      <title>Betreff: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998312#M1272</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14304290"&gt;@icse&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {

	reset localvars
	DIALOGS MESSAGE OFF
	DIALOGS ERROR OFF
	GRAPHICS LOCK
	
	if size(explorer_selected_entities()) &amp;lt;= 0 or explorer_selected_entities()[0].RootType != 'tool' {
		return
	}
	
    string list $types = {'Finishing', 'Roughing'}
	int $feedspeedIndexType = INPUT choice $types "Enter Type"
    string list $operations = {'General', 'Slotting', 'Profiling', 'Face Milling', 'Drilling', 'Plunge Milling', 'Copy Milling'}
	int $feedspeedIndex = INPUT choice $operations "Enter Operation"
	
	REAL $speed = INPUT "Enter Cutting Speed"
	REAL $feed = INPUT "Enter Feed/Tooth"
		
	foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {
	
	EDIT TOOL FEEDSPEED SELECT 0 $feedspeedIndex 
    EDIT TOOL $t SURFACESPEED $speed
	EDIT TOOL $t FEEDPERTOOTH $feed
		
}	
	DIALOGS MESSAGE ON
	DIALOGS ERROR ON
	GRAPHICS UNLOCK
}&lt;/LI-CODE&gt;&lt;P&gt;Splendid,&lt;/P&gt;&lt;P&gt;Now how do I distinguish between Roughing and Finishing?&lt;/P&gt;&lt;P&gt;I came up with the above but am unsure how to apply.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 16:19:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998312#M1272</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2024-09-03T16:19:33Z</dc:date>
    </item>
    <item>
      <title>Betreff: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998419#M1273</link>
      <description>&lt;P&gt;Pretty much the same as above, you just need anoter list with the options and anoter variable wich stores the value&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 17:16:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998419#M1273</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-09-03T17:16:10Z</dc:date>
    </item>
    <item>
      <title>Betreff: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998557#M1274</link>
      <description>&lt;P&gt;So I have two indexes, one for the data type and one for the operation, and they're outputting the correct values,&lt;/P&gt;&lt;P&gt;I'm just unsure how to put both those values on the same line as&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EDIT TOOL FEEDSPEED &lt;/SPAN&gt;&lt;SPAN&gt;SELECT.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;The code below fails.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {

	reset localvars
	DIALOGS MESSAGE OFF
	DIALOGS ERROR OFF
	GRAPHICS LOCK
	
	if size(explorer_selected_entities()) &amp;lt;= 0 or explorer_selected_entities()[0].RootType != 'tool' {
		return
	}
	
    string list $types = {'Finishing', 'Roughing'}
	int $feedspeedIndexType = INPUT choice $types "Enter Type"
    string list $operations = {'General', 'Slotting', 'Profiling', 'Face Milling', 'Drilling', 'Plunge Milling', 'Copy Milling'}
	int $feedspeedIndex = INPUT choice $operations "Enter Operation"
	
	REAL $speed = INPUT "Enter Cutting Speed"
	REAL $feed = INPUT "Enter Feed/Tooth"
	
	foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {
		 
	EDIT TOOL FEEDSPEED SELECT 0 $feedspeedIndexType + $feedspeedIndex   
	PRINT $feedspeedIndexType
	PRINT $feedspeedIndex  
	EDIT TOOL $t SURFACESPEED $speed
	EDIT TOOL $t FEEDPERTOOTH $feed
		
}	
	DIALOGS MESSAGE ON
	DIALOGS ERROR ON
	GRAPHICS UNLOCK
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 18:13:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998557#M1274</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2024-09-03T18:13:57Z</dc:date>
    </item>
    <item>
      <title>Betreff: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998631#M1275</link>
      <description>&lt;LI-CODE lang="general"&gt;EDIT TOOL FEEDSPEED SELECT ${feedspeedIndexType} ${feedspeedIndex}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Sep 2024 18:50:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998631#M1275</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-09-03T18:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998644#M1276</link>
      <description>&lt;P&gt;Cheers, Now it works great&lt;/P&gt;&lt;LI-CODE lang="general"&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {

	reset localvars
	DIALOGS MESSAGE OFF
	DIALOGS ERROR OFF
	GRAPHICS LOCK
	
	if size(explorer_selected_entities()) &amp;lt;= 0 or explorer_selected_entities()[0].RootType != 'tool' {
		return
	}
	
    string list $types = {'Finishing', 'Roughing'}
	int $feedspeedIndexType = INPUT choice $types "Enter Type"
    string list $operations = {'General', 'Slotting', 'Profiling', 'Face Milling', 'Drilling', 'Plunge Milling', 'Copy Milling'}
	int $feedspeedIndex = INPUT choice $operations "Enter Operation"
	
	REAL $speed = INPUT "Enter Cutting Speed"
	REAL $feed = INPUT "Enter Feed/Tooth"
	
	foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {
		 
	EDIT TOOL FEEDSPEED SELECT ${feedspeedIndexType} ${feedspeedIndex} 
	EDIT TOOL $t SURFACESPEED $speed
	EDIT TOOL $t FEEDPERTOOTH $feed
		
}	
	DIALOGS MESSAGE ON
	DIALOGS ERROR ON
	GRAPHICS UNLOCK
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Sep 2024 18:58:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/12998644#M1276</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2024-09-03T18:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/13000459#M1277</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14304290"&gt;@icse&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to be a pain but could you tell me why my coolant choice is failing?&lt;/P&gt;&lt;LI-CODE lang="general"&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {

	reset localvars
	DIALOGS MESSAGE OFF
	DIALOGS ERROR OFF
	GRAPHICS LOCK
	
	if size(explorer_selected_entities()) &amp;lt;= 0 or explorer_selected_entities()[0].RootType != 'tool' {
		return
	}
	
    string list $types = {'Finishing', 'Roughing'}
	int $feedspeedIndexType = INPUT choice $types "Enter Type"

    string list $operations = {'General', 'Slotting', 'Profiling', 'Face Milling', 'Drilling', 'Plunge Milling', 'Copy Milling'}
	int $feedspeedIndex = INPUT choice $operations "Enter Operation"

	STRING list $Coolanttype = {'None', 'On', 'Thru'}
	STRING $C = INPUT CHOICE $Coolanttype "Enter Coolant Type"
	$C = $Coolanttype
	PRINT $C

			
	REAL $speed = INPUT "Enter Cutting Speed"
	REAL $feed = INPUT "Enter Feed/Tooth"
	
	
	foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {
		 
	EDIT TOOL FEEDSPEED SELECT ${feedspeedIndexType} ${feedspeedIndex} 
	EDIT TOOL $t SURFACESPEED $speed
	EDIT TOOL $t FEEDPERTOOTH $feed
	EDIT TOOL $t COOLANT $Coolanttype
	
}	
	DIALOGS MESSAGE ON
	DIALOGS ERROR ON
	GRAPHICS UNLOCK
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Sep 2024 14:16:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/13000459#M1277</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2024-09-04T14:16:03Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/13000948#M1278</link>
      <description>&lt;P&gt;try this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {

	reset localvars
	DIALOGS MESSAGE OFF
	DIALOGS ERROR OFF
	GRAPHICS LOCK
	
	if size(explorer_selected_entities()) &amp;lt;= 0 or explorer_selected_entities()[0].RootType != 'tool' {
		return
	}
	
    string list $types = {'Finishing', 'Roughing'}
	int $feedspeedIndexType = INPUT choice $types "Enter Type"

    string list $operations = {'General', 'Slotting', 'Profiling', 'Face Milling', 'Drilling', 'Plunge Milling', 'Copy Milling'}
	int $feedspeedIndex = INPUT choice $operations "Enter Operation"

	STRING list $Coolanttypes = {'None', 'Standart', 'Flood', 'Mist', 'Tap', 'Air', 'Thru', 'Both'}
	int $index = INPUT CHOICE $Coolanttypes "Enter Coolant Type"
	string $Coolanttype = lcase($Coolanttypes[$index])

			
	REAL $speed = INPUT "Enter Cutting Speed"
	REAL $feed = INPUT "Enter Feed/Tooth"
	
	
	foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {
		 
	EDIT TOOL FEEDSPEED SELECT ${feedspeedIndexType} ${feedspeedIndex} 
	EDIT TOOL $t SURFACESPEED $speed
	EDIT TOOL $t FEEDPERTOOTH $feed
	EDIT TOOL $t COOLANT ${Coolanttype}
	
}	
	DIALOGS MESSAGE ON
	DIALOGS ERROR ON
	GRAPHICS UNLOCK
}&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 04 Sep 2024 17:36:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/13000948#M1278</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-09-04T17:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/13001050#M1279</link>
      <description>&lt;P&gt;Strange,&lt;/P&gt;&lt;P&gt;It's returning the correct coolant type when I PRINT $Coolanttype but fails with this in the command window.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**** EDIT TOOL $t COOLANT ${Coolanttype}\n&lt;BR /&gt;**** --------------------^ Unexpected input !!&lt;/P&gt;&lt;P&gt;Error in Network : tool ( CoolantCmd )&lt;BR /&gt;Last Valid Token : COOLANT extracted by graph [ COMMAND ]&lt;BR /&gt;Received input : " ${Coolanttype}\n"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried without the curly brackets but got the same result.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 18:31:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/13001050#M1279</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2024-09-04T18:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/13001106#M1280</link>
      <description>&lt;P&gt;oh ok you could try:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;string $cmd = "EDIT TOOL '" + $t.Name + "' COOLANT " + $Coolanttype
docommand $cmd&lt;/LI-CODE&gt;&lt;P&gt;or&lt;/P&gt;&lt;LI-CODE lang="general"&gt;$t.Coolant = $Coolanttype&lt;/LI-CODE&gt;&lt;P&gt;insted of:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;EDIT TOOL $t COOLANT ${Coolanttype}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;both should work&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 18:56:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/13001106#M1280</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-09-04T18:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Edit Cutting Data Macro Help</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/13001123#M1281</link>
      <description>&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;I used the 2nd option,&lt;/P&gt;&lt;P&gt;Here's the working Macro.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;IF $powermill.Status.MultipleSelection.First OR $powermill.Status.MultipleSelection.Total == 0 {

	reset localvars
	DIALOGS MESSAGE OFF
	DIALOGS ERROR OFF
	GRAPHICS LOCK
	
	if size(explorer_selected_entities()) &amp;lt;= 0 or explorer_selected_entities()[0].RootType != 'tool' {
		return
	}
	
    string list $types = {'Finishing', 'Roughing'}
	int $feedspeedIndexType = INPUT choice $types "Enter Type"

    string list $operations = {'General', 'Slotting', 'Profiling', 'Face Milling', 'Drilling', 'Plunge Milling', 'Copy Milling'}
	int $feedspeedIndex = INPUT choice $operations "Enter Operation"

	STRING list $Coolanttypes = {'None', 'Standard', 'Flood', 'Mist', 'Tap', 'Air', 'Thru', 'Both'}
	int $index = INPUT CHOICE $Coolanttypes "Enter Coolant Type"
	string $Coolanttype = lcase($Coolanttypes[$index])
    PRINT $Coolanttype
			
	REAL $speed = INPUT "Enter Cutting Speed"
	REAL $feed = INPUT "Enter Feed/Tooth"
	
	
	foreach $t in filter(explorer_selected_entities(),'this.RootType == "tool"') {
		 
	EDIT TOOL FEEDSPEED SELECT ${feedspeedIndexType} ${feedspeedIndex} 
	EDIT TOOL $t SURFACESPEED $speed
	EDIT TOOL $t FEEDPERTOOTH $feed
	$t.Coolant = $Coolanttype
	
}	
	DIALOGS MESSAGE ON
	DIALOGS ERROR ON
	GRAPHICS UNLOCK
}&amp;nbsp;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 19:02:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/edit-cutting-data-macro-help/m-p/13001123#M1281</guid>
      <dc:creator>evo80</dc:creator>
      <dc:date>2024-09-04T19:02:49Z</dc:date>
    </item>
  </channel>
</rss>

