<?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: Looking help to improve my MachiningCloud interface Macro in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8590391#M16730</link>
    <description>&lt;P&gt;Not so easy finally .. But step by step this macro is working better, on the good way. &lt;BR /&gt;Thanks for the Idea &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4163177"&gt;@rafael.sansao&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Feb 2019 15:48:20 GMT</pubDate>
    <dc:creator>5axes</dc:creator>
    <dc:date>2019-02-12T15:48:20Z</dc:date>
    <item>
      <title>Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8589532#M16724</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;As mentionned in the title, I'm looking help&amp;nbsp;or idea ( &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3959841"&gt;@kukelyk&lt;/a&gt;&amp;nbsp;, &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4163177"&gt;@rafael.sansao&lt;/a&gt;&amp;nbsp;? )&amp;nbsp; to improve the macro I'm using to transform automaticaly&amp;nbsp; a STEP geometry into tool and holder in PMILL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The joined file OK.mp4&amp;nbsp; demonstrate the use of these macro associated with MachiningCloud.&lt;BR /&gt;It works fine , but when the profil of the tool or the holder includes a hole the macro failed.&amp;nbsp; ( Video Ko.mp4)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any Idea will be welcome.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 10:09:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8589532#M16724</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2019-02-12T10:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8589608#M16725</link>
      <description>&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;You need to delete the small segments of the pattern -&amp;gt; points.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Add this code after 'CURVEEDITOR FINISH ACCEPT'&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;EDIT PATTERN $NPattern SPLIT
EDIT PATTERN $NPattern DESELECT ALL
IF $Powermill.Units == 'metric' {
	EDIT PATTERN $NPattern SELECT LENGTH LT '.01'
} ELSE {
	EDIT PATTERN $NPattern SELECT LENGTH LT '.0004'
}
DELETE PATTERN $NPattern SELECTED
EDIT PATTERN $NPattern SELECT ALL
EDIT PATTERN $NPattern MERGE
EDIT PATTERN $NPattern DESELECT ALL&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Let me know if it worked.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 10:49:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8589608#M16725</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2019-02-12T10:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8589671#M16726</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4163177"&gt;@rafael.sansao&lt;/a&gt;&amp;nbsp; for this suggestion. But small segment are not the origin of this problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;It's really when we have a closed profile that the shank creation failed :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Profil.jpg" style="width: 615px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/602007i793AAE8677492A50/image-size/large?v=v2&amp;amp;px=999" role="button" title="Profil.jpg" alt="Profil.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tested something like :&lt;/P&gt;
&lt;PRE&gt;		EDIT PATTERN $NPattern CURVEEDITOR START
		CURVEEDITOR SELECT CLOSED
		CURVEEDITOR MODE SEGMENT_BREAK
		CURVEEDITOR BREAK_SEG "3"
		CURVEEDITOR MODE DEFAULT
		CURVEEDITOR DELETE SELECTED
		CURVEEDITOR FINISH ACCEPT
		YES&lt;/PRE&gt;
&lt;P&gt;To remove one third of the profile .. But unfortunatly sometimes&amp;nbsp; the macro doesn't remove the right segment.&amp;nbsp; So I'm looking for a smart solution to obtain from a closed profile an open one, like in the following example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Modif.jpg" style="width: 631px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/602008iEE29FE40AC98E89E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Modif.jpg" alt="Modif.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 11:23:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8589671#M16726</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2019-02-12T11:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8589857#M16727</link>
      <description>&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Closed profile is not the problem&lt;/SPAN&gt;&lt;/SPAN&gt;. &lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;Check this in the attached project.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;I have set the tolerance manually to achieve the expected result (it will not work well in a macro &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://forums.autodesk.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="tlid-translation translation"&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Can you close the holes using Capping Surfaces before using SPUN_PROFILE (by macro)?&lt;/SPAN&gt; The result will be what you want.&lt;/SPAN&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>Tue, 12 Feb 2019 12:50:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8589857#M16727</guid>
      <dc:creator>rafael.sansao</dc:creator>
      <dc:date>2019-02-12T12:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8589934#M16728</link>
      <description>&lt;P&gt;Using&amp;nbsp;Capping Surfaces looks like a good solution.. Not so easy to implement&amp;nbsp;but I will try on that way.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 13:23:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8589934#M16728</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2019-02-12T13:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8590233#M16729</link>
      <description>&lt;P&gt;Ok final solution With creation of Upper and Lower Plane ...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Fin.jpg" style="width: 506px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/602116iCCB9F0F8D1C1B627/image-size/large?v=v2&amp;amp;px=999" role="button" title="Fin.jpg" alt="Fin.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 14:57:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8590233#M16729</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2019-02-12T14:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8590391#M16730</link>
      <description>&lt;P&gt;Not so easy finally .. But step by step this macro is working better, on the good way. &lt;BR /&gt;Thanks for the Idea &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4163177"&gt;@rafael.sansao&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 15:48:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8590391#M16730</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2019-02-12T15:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8592260#M16731</link>
      <description>Nice job!

There is another tortuous way:
-create the section pattern as You already did
-create boundary from this pattern

-recognize holes, grab the largest diameter 
-calculate bounding box, limit its matching size to the previous diameter/2, and block boundary
-unite the boundaries
-new pattern from this boundary

There can be problem with the hole recognition, if pmill make holes from the outer diameters..</description>
      <pubDate>Wed, 13 Feb 2019 10:21:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8592260#M16731</guid>
      <dc:creator>kukelyk</dc:creator>
      <dc:date>2019-02-13T10:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8592348#M16732</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3959841"&gt;@kukelyk&lt;/a&gt;&amp;nbsp;for your answer ... Not sure to fully understand your solution&amp;nbsp;&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;I have improved my solution and I think I'm closed to the final goal. I'm using 2 new macros to manage holder assemblies : (Final.mp4)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm still looking for a solution to supress automaticaly the useless part of the cone on&amp;nbsp; a complex Holder ( Last operations in the joined video) . An imagined solution was to detect the elements with the largest diameter and supress the upward element , but unfortunately in some cases this solution does not work (holding part bigger than conical part of the holder)&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Holder.jpg" style="width: 460px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/602433i451C03B3B4C9162F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Holder.jpg" alt="Holder.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, 13 Feb 2019 11:03:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/8592348#M16732</guid>
      <dc:creator>5axes</dc:creator>
      <dc:date>2019-02-13T11:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/12581708#M16733</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="n_brandao_0-1708882373126.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1330136iF19CEBAC71089659/image-size/medium?v=v2&amp;amp;px=400" role="button" title="n_brandao_0-1708882373126.png" alt="n_brandao_0-1708882373126.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;doesnt work, any sugestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Feb 2024 17:32:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/12581708#M16733</guid>
      <dc:creator>n_brandao</dc:creator>
      <dc:date>2024-02-25T17:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Looking help to improve my MachiningCloud interface Macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/12582052#M16734</link>
      <description>&lt;P&gt;The macro must be run with an argument that is a model name.&lt;/P&gt;&lt;P&gt;So, you have 2 options:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;to run the macro from the command line with a model name as the argument&lt;/LI&gt;&lt;LI&gt;to create an entity custom menu that runs that macro passing a selected model name as an argument&lt;BR /&gt;&lt;A href="https://help.autodesk.com/view/PWRM/2023/ENU/?guid=GUID-717F6F4C-3628-48C1-AABC-73211C89DCED" target="_blank"&gt;PowerMill Help | Rules for adding menu options to PowerMill entity menu | Autodesk&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Sun, 25 Feb 2024 23:46:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/looking-help-to-improve-my-machiningcloud-interface-macro/m-p/12582052#M16734</guid>
      <dc:creator>ondrej.mikulec</dc:creator>
      <dc:date>2024-02-25T23:46:03Z</dc:date>
    </item>
  </channel>
</rss>

