<?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: Creating a hole featureset based on depth type in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286810#M3238</link>
    <description>&lt;P&gt;So you whant to Copy only the 'Blind' Holes from the active featureset in a new one?&lt;/P&gt;&lt;P&gt;Whats your end goal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2023 13:12:49 GMT</pubDate>
    <dc:creator>icse</dc:creator>
    <dc:date>2023-10-05T13:12:49Z</dc:date>
    <item>
      <title>Creating a hole featureset based on depth type</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286676#M3237</link>
      <description>&lt;P&gt;I have this macro that I created that is supposed to create a separate hole feature set if a depth type of blind exists called&amp;nbsp;&lt;SPAN&gt;EXCLUDED .625 DIA. HOLES BLIND&amp;nbsp;&lt;/SPAN&gt;in a hole featureset called&amp;nbsp;&lt;SPAN&gt;EXCLUDED .625 DIA. HOLES.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know it exists but all it does is loop through the featureset but doesn't select the blind hole and create a new feature set.&amp;nbsp;&lt;/SPAN&gt;&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="iamcdn79_0-1696508590429.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1275598i58FDA3B819389C4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="iamcdn79_0-1696508590429.png" alt="iamcdn79_0-1696508590429.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;// Check if the EXCLUDED .625 DIA. HOLES feature set exists
  IF entity_exists('featureset','EXCLUDED .625 DIA. HOLES') {
    // Activate the feature set
    ACTIVATE FEATURESET "EXCLUDED .625 DIA. HOLES"
    
    // Select blind holes
    EDIT FEATURESET ; DESELECT ALL
    EDIT SELECTION CLEAR
    EDIT SELECTION FILTER DEPTHTYPE "Blind"
    EDIT SELECTION APPLY
    
   
      // Check if any features were selected
    IF SIZE(components($entity('featureset','EXCLUDED .625 DIA. HOLES'))) &amp;gt; SIZE(components($entity('featureset',''))) {
     // Copy selected features to a new feature set
    COPY FEATURESET ; SELECTED
    RENAME FEATURESET # "EXCLUDED .625 DIA. HOLES BLIND"
  }
  }&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Oct 2023 12:24:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286676#M3237</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2023-10-05T12:24:41Z</dc:date>
    </item>
    <item>
      <title>Betreff: Creating a hole featureset based on depth type</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286810#M3238</link>
      <description>&lt;P&gt;So you whant to Copy only the 'Blind' Holes from the active featureset in a new one?&lt;/P&gt;&lt;P&gt;Whats your end goal?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 13:12:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286810#M3238</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2023-10-05T13:12:49Z</dc:date>
    </item>
    <item>
      <title>Betreff: Creating a hole featureset based on depth type</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286931#M3239</link>
      <description>&lt;P&gt;My goal is to create a separate drilling toolpath for that type of diameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, a .625 diameter is used for a 3/8 SHCS where the counterbore is 5/8 diameter, and also for a 5/8 dowel, I want to separate them to create an individual toolpath not the same toolpath with both of those holes in them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is the only way I can think of separating them.&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="iamcdn79_0-1696513861277.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1275652iEC5CD44A36634CAD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="iamcdn79_0-1696513861277.png" alt="iamcdn79_0-1696513861277.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 13:54:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286931#M3239</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2023-10-05T13:54:43Z</dc:date>
    </item>
    <item>
      <title>Betreff: Creating a hole featureset based on depth type</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286942#M3240</link>
      <description>&lt;P&gt;does this come close?&lt;/P&gt;&lt;LI-CODE lang="general"&gt;// Check if the EXCLUDED .625 DIA. HOLES feature set exists
if not entity_exists('featureset','EXCLUDED .625 DIA. HOLES') {
	return
}


ACTIVATE FEATURESET "EXCLUDED .625 DIA. HOLES"

//keep track if the form was open we need to raise the form to get the position of 'blind' in the list
//im not 100% sure if its always on position 0...
bool $isVisible = widget('FeatureSelect').Visible
if not $isVisible {
	FORM FEATURESELECT
}

//clear the selection
EDIT SELECTION CLEAR
EDIT SELECTION TYPE DEPTHTYPE

//get the number of elements in the list
int $n = list_num_rows('FeatureSelect.List')

//loop over each element store the index and exit the loop if we found 'Blind'
int $index = 0
while $index &amp;lt; $n {	
	if list_cell_value('FeatureSelect.List',$index,0) == 'Blind' {
		break
	}
	$index = $index + 1
}

//the if the form was closed to begin with we close the form
if not $isVisible {
	FEATURESELECT CANCEL
}

//if we looped trouhg the whole loop then there was no element with the name 'Blind'
if $index &amp;gt;= $n {
	return
}



// Select blind holes
EDIT FEATURESET ; DESELECT ALL
EDIT SELECTION CLEAR
EDIT SELECTION TYPE DEPTHTYPE
EDIT SELECTION STORE ${index} NEW
EDIT SELECTION ADD EDIT SELECTION APPLY

// Check if any features were selected &amp;gt;&amp;gt;&amp;gt; we do not need this becose we already found 'Blind' in the form before
//just to show you how to check if theres a selected feature
if number_selected($entity('featureset','')) &amp;gt; 0 {

	// Copy selected features to a new feature set
	COPY FEATURESET ; SELECTED
	
	//give the new feature a new name if the original is already taken so the macro does not break
	string $name = "EXCLUDED .625 DIA. HOLES BLIND"
	if entity_exists('featureset', $name) {
		$name = new_entity_name('featureset', $name)
	}
	RENAME FEATURESET # ${name}
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 05 Oct 2023 13:58:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286942#M3240</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2023-10-05T13:58:26Z</dc:date>
    </item>
    <item>
      <title>Betreff: Creating a hole featureset based on depth type</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286966#M3241</link>
      <description>&lt;P&gt;Sort of, it copied all the holes from from the&amp;nbsp;&lt;SPAN&gt;EXCLUDED .625 DIA. HOLES featureset to a new featureset set called&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;EXCLUDED .625 DIA. HOLES BLIND instead of just copying the blind type holes&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&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="iamcdn79_0-1696514715734.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1275660i68BF5042694F91A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="iamcdn79_0-1696514715734.png" alt="iamcdn79_0-1696514715734.png" /&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 14:08:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286966#M3241</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2023-10-05T14:08:28Z</dc:date>
    </item>
    <item>
      <title>Betreff: Creating a hole featureset based on depth type</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286976#M3242</link>
      <description>&lt;P&gt;You can use those boxes... change bot to 1 and it should compute only the top element&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="pmforum.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1275663iCAE31DBAC5D9C19B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pmforum.png" alt="pmforum.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 14:10:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286976#M3242</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2023-10-05T14:10:51Z</dc:date>
    </item>
    <item>
      <title>Betreff: Creating a hole featureset based on depth type</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286987#M3243</link>
      <description>&lt;P&gt;oh my bad i ususally dont work with compound holes...&lt;/P&gt;&lt;P&gt;you need to split em first with this command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;EDIT FEATURESET ; HOLES EXPLODE&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its also in the contexmenue if you rightklick the featureset =&amp;gt; edit =&amp;gt; separate compound holes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also the you should rewrite the macro:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;copy the original featureset completely&lt;/LI&gt;&lt;LI&gt;split compound holes of the copy&lt;/LI&gt;&lt;LI&gt;select all 'Blind' holes&lt;/LI&gt;&lt;LI&gt;invert the selection&lt;/LI&gt;&lt;LI&gt;delete the selection&lt;/LI&gt;&lt;LI&gt;then rename or delete it if its empty&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so you dont destroy the original featureset&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 14:21:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12286987#M3243</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2023-10-05T14:21:23Z</dc:date>
    </item>
    <item>
      <title>Betreff: Creating a hole featureset based on depth type</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12287000#M3244</link>
      <description>&lt;P&gt;It puts all those holes as one toolpath which I don't want, I still have to separate those toolpaths between a reamed toopath and a SHCS toolpath&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="iamcdn79_0-1696515452552.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1275669i14DD448B65458109/image-size/medium?v=v2&amp;amp;px=400" role="button" title="iamcdn79_0-1696515452552.png" alt="iamcdn79_0-1696515452552.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's why I am trying to separate those holes in a featureset and create a toolpath, one for blind, one for through&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 14:19:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12287000#M3244</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2023-10-05T14:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a hole featureset based on depth type</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12287237#M3245</link>
      <description>&lt;P&gt;I replaced this line&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;IF SIZE(components($entity('featureset','EXCLUDED .625 DIA. HOLES'))) &amp;gt; SIZE(components($entity('featureset',''))) {&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt; if number_selected($entity('featureset','')) &amp;gt; 0 {&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it worked. Thanks to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14304290"&gt;@icse&lt;/a&gt;&amp;nbsp;for that tip.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2023 15:45:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/creating-a-hole-featureset-based-on-depth-type/m-p/12287237#M3245</guid>
      <dc:creator>iamcdn79</dc:creator>
      <dc:date>2023-10-05T15:45:52Z</dc:date>
    </item>
  </channel>
</rss>

