<?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: cant create choice...? in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14098279#M33373</link>
    <description>&lt;LI-CODE lang="csharp"&gt;RESET LOCALVARS
IF NOT entity_exists('featureset',"") { 
	MESSAGE INFO "No Feature-set in session"
	RETURN
}

//Filters for only Drilling Programs
ENTITY LIST $temp = filter(folder("toolpath\"),'strategy == "drill"')

//dummy list
STRING LIST $Selected = {}

FOREACH i in $temp { 
INT f = add_last($Selected, $i.Name)
}
INT LIST $finalSelection = INPUT CHOICE MULTIPLE $Selected "Select toolpaths"

FOREACH i in $finalSelection {
	ENTITY $tp = entity("Toolpath",$Selected[i])
	ACTIVATE TOOLPATH $tp.Name
}&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 20 Apr 2026 16:06:42 GMT</pubDate>
    <dc:creator>rafael.sansao</dc:creator>
    <dc:date>2026-04-20T16:06:42Z</dc:date>
    <item>
      <title>cant create choice...?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14097994#M33370</link>
      <description>&lt;P&gt;it says i cant make an choice list ??? is it because its an entity list or am i using this wrong?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;reset localvars
if not entity_exists('featureset',"") { 
message info "No Feature-set in session"
return
}

//Filters for only Drilling Programs
entity list $temp = filter(folder("toolpath\"),'strategy == "drill"')

//dummy list
entity list $Selected = {}


foreach i in $temp { 
int f = add_last($Selected, entity('toolpath',''))

}
string $finalSelection = input choice $Selected ""

foreach i in $Selected {
ACTIVATE TOOLPATH $i

}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Apr 2026 13:18:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14097994#M33370</guid>
      <dc:creator>jsweatherbie</dc:creator>
      <dc:date>2026-04-20T13:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: cant create choice...?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14098041#M33371</link>
      <description>&lt;P&gt;try this&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;reset localvars

if not entity_exists('featureset',"") {
    message info "No Feature-set in session"
    return
}

// Filter for only Drilling toolpaths
entity list $temp = filter(folder('toolpath'), 'strategy == "drill"')

// Build a string list of names for the choice dialog
string list $nameList = {}

foreach $i in $temp {
    int $f = add_last($nameList, $i.Name)
}

// Select Toolpaths
string $finalSelection = input choice $nameList "Select Toolpaths To Activate"


// Activate the chosen toolpath by name
ACTIVATE TOOLPATH $finalSelection&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Apr 2026 13:53:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14098041#M33371</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2026-04-20T13:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: cant create choice...?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14098094#M33372</link>
      <description>&lt;P&gt;this works but im trying to get it to be multiple selection i didnt know if it needed to be an entity list or a string list...&lt;/P&gt;&lt;P&gt;ive tired keeping it an entity but i never seem to get it working...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;im trying to get it so when the user gets the list they can select what they want and continue with the macro&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2026 14:10:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14098094#M33372</guid>
      <dc:creator>jsweatherbie</dc:creator>
      <dc:date>2026-04-20T14:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: cant create choice...?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14098279#M33373</link>
      <description>&lt;LI-CODE lang="csharp"&gt;RESET LOCALVARS
IF NOT entity_exists('featureset',"") { 
	MESSAGE INFO "No Feature-set in session"
	RETURN
}

//Filters for only Drilling Programs
ENTITY LIST $temp = filter(folder("toolpath\"),'strategy == "drill"')

//dummy list
STRING LIST $Selected = {}

FOREACH i in $temp { 
INT f = add_last($Selected, $i.Name)
}
INT LIST $finalSelection = INPUT CHOICE MULTIPLE $Selected "Select toolpaths"

FOREACH i in $finalSelection {
	ENTITY $tp = entity("Toolpath",$Selected[i])
	ACTIVATE TOOLPATH $tp.Name
}&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 20 Apr 2026 16:06:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14098279#M33373</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2026-04-20T16:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: cant create choice...?</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14098431#M33374</link>
      <description>&lt;P&gt;yes that i was trying to do !&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;seems like i was missing the integer list!&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2026 17:53:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/cant-create-choice/m-p/14098431#M33374</guid>
      <dc:creator>jsweatherbie</dc:creator>
      <dc:date>2026-04-20T17:53:09Z</dc:date>
    </item>
  </channel>
</rss>

