<?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: [macro] pattern check in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12801583#M1727</link>
    <description>&lt;P&gt;you can try somehting like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;entity $lvl1 = input entity level 'Select first'
entity $lvl2 = input entity level 'Select second'


EDIT MODEL ALL DESELECT ALL

EDIT LEVEL ${lvl1.Name} SELECT WIREFRAME
EDIT LEVEL ${lvl2.Name} SELECT WIREFRAME

string $p = new_entity_name('pattern')
CREATE PATTERN ;
EDIT PATTERN ${p} INSERT MODEL

EDIT PATTERN ${p} DESELECT ALL
EDIT PATTERN ${p} SELECT DUPLICATES


if number_selected('pattern', $p) != 0 {
	message info 'Equal'
} else {
	message info 'Not Equal'
}

purge pattern ${p} yes&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not tested this properly, there might be some edge cases...&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 09:15:34 GMT</pubDate>
    <dc:creator>icse</dc:creator>
    <dc:date>2024-05-28T09:15:34Z</dc:date>
    <item>
      <title>[macro] pattern check</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12801290#M1726</link>
      <description>&lt;P&gt;hello everyone, is possible check if 2 pattern are equal or not?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="moraschini_0-1716877330641.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1368067i0DDA1F80EA94DEEA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="moraschini_0-1716877330641.png" alt="moraschini_0-1716877330641.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have this 2 line on different level trnsfered from cad and i need to check if these are the same or not.&lt;BR /&gt;thanks in advance for the help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 06:23:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12801290#M1726</guid>
      <dc:creator>moraschini</dc:creator>
      <dc:date>2024-05-28T06:23:41Z</dc:date>
    </item>
    <item>
      <title>Betreff: [macro] pattern check</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12801583#M1727</link>
      <description>&lt;P&gt;you can try somehting like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;entity $lvl1 = input entity level 'Select first'
entity $lvl2 = input entity level 'Select second'


EDIT MODEL ALL DESELECT ALL

EDIT LEVEL ${lvl1.Name} SELECT WIREFRAME
EDIT LEVEL ${lvl2.Name} SELECT WIREFRAME

string $p = new_entity_name('pattern')
CREATE PATTERN ;
EDIT PATTERN ${p} INSERT MODEL

EDIT PATTERN ${p} DESELECT ALL
EDIT PATTERN ${p} SELECT DUPLICATES


if number_selected('pattern', $p) != 0 {
	message info 'Equal'
} else {
	message info 'Not Equal'
}

purge pattern ${p} yes&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not tested this properly, there might be some edge cases...&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 09:15:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12801583#M1727</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-05-28T09:15:34Z</dc:date>
    </item>
    <item>
      <title>Betreff: [macro] pattern check</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12801996#M1728</link>
      <description>&lt;P&gt;hello &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14304290"&gt;@icse&lt;/a&gt; , is there a way to select only a colour of the level instead of all the level?&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 12:33:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12801996#M1728</guid>
      <dc:creator>moraschini</dc:creator>
      <dc:date>2024-05-28T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Betreff: [macro] pattern check</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12802053#M1729</link>
      <description>&lt;P&gt;you can use this command to filter:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;EDIT SELECTION MODEL FILTER '255, 128, 0'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;entity $lvl1 = input entity level 'Select first'
entity $lvl2 = input entity level 'Select second'


EDIT MODEL ALL DESELECT ALL

EDIT LEVEL ${lvl1.Name} SELECT WIREFRAME
EDIT LEVEL ${lvl2.Name} SELECT WIREFRAME

//your color
EDIT SELECTION MODEL FILTER '255, 128, 26'

string $p = new_entity_name('pattern')
CREATE PATTERN ;
EDIT PATTERN ${p} INSERT MODEL

EDIT PATTERN ${p} DESELECT ALL
EDIT PATTERN ${p} SELECT DUPLICATES


if number_selected('pattern', $p) != 0 {
	message info 'Equal'
} else {
	message info 'Not Equal'
}

purge pattern ${p} yes&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 28 May 2024 13:03:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12802053#M1729</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-05-28T13:03:49Z</dc:date>
    </item>
    <item>
      <title>Betreff: [macro] pattern check</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12807891#M1730</link>
      <description>&lt;P&gt;Thank you very much &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14304290"&gt;@icse&lt;/a&gt;,&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 15:54:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/macro-pattern-check/m-p/12807891#M1730</guid>
      <dc:creator>moraschini</dc:creator>
      <dc:date>2024-05-30T15:54:38Z</dc:date>
    </item>
  </channel>
</rss>

