<?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: Help with this macro in PowerMill Forum</title>
    <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12778516#M1772</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;   entity LIST $PlanoP = {}
	entity $PlanoP = INPUT ENTITY Workplane "Selecione o plano de trabalho principal"
   GRAPHICS LOCK
   DIALOGS MESSAGE OFF
  DIALOGS ERROR OFF
 

 string $planoN= $PlanoP

 ACTIVATE Workplane $PlanoP


MODE WORKPLANE_CREATE ; INTERACTIVE GEOMETRY
   Macro Pause "Clique na face que deseja alinhar a vista" 


ACTIVATE Workplane "1"
ROTATE TRANSFORM TOP


COPY WORKPLANE $PlanoP
RENAME Workplane "$PlanoN" "INCLINADO_X"
MODE WORKPLANE_EDIT START "INCLINADO_X"
MODE WORKPLANE_EDIT ALIGN VIEW
MODE WORKPLANE_EDIT FINISH ACCEPT

delete workplane"1"&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;is this corret?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 17:47:19 GMT</pubDate>
    <dc:creator>abner_asafe</dc:creator>
    <dc:date>2024-05-16T17:47:19Z</dc:date>
    <item>
      <title>Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12776457#M1770</link>
      <description>&lt;P&gt;Hello, I need help with this macro, at the beginning I need it to show a list with the workplanes to select just one (commented part of the code) after that open the option to create a plane aligned in the geometry and then get the plane that I selected at the beginning and align its top view with the plane aligned in the geometry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;//   STRING LIST $PlanoP = {}
//   $PlanoP = INPUT ENTITY MULTIPLE Workplane "Selecione o plano de trabalho principal" 
//   GRAPHICS LOCK
//   DIALOGS MESSAGE OFF
//  DIALOGS ERROR OFF
   

 ACTIVATE Workplane INCLINADO


MODE WORKPLANE_CREATE ; INTERACTIVE GEOMETRY
   Macro Pause "Clique na face que deseja alinhar a vista" 


ACTIVATE Workplane "1"
ROTATE TRANSFORM TOP


COPY WORKPLANE INCLINADO
RENAME Workplane "INCLINADO_1" "INCLINADO_X"
MODE WORKPLANE_EDIT START "INCLINADO_X"
MODE WORKPLANE_EDIT ALIGN VIEW
MODE WORKPLANE_EDIT FINISH ACCEPT

delete workplane"1"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 01:50:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12776457#M1770</guid>
      <dc:creator>abner_asafe</dc:creator>
      <dc:date>2024-05-16T01:50:16Z</dc:date>
    </item>
    <item>
      <title>Betreff: Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12776987#M1771</link>
      <description>&lt;P&gt;you need a entity list insted of a string list:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;entity LIST $PlanoP = {}
$PlanoP = INPUT ENTITY MULTIPLE Workplane "Selecione o plano de trabalho principal"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and for a single workplane use this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;entity $PlanoP = INPUT ENTITY Workplane "Selecione o plano de trabalho principal"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 07:08:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12776987#M1771</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-05-16T07:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12778516#M1772</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;   entity LIST $PlanoP = {}
	entity $PlanoP = INPUT ENTITY Workplane "Selecione o plano de trabalho principal"
   GRAPHICS LOCK
   DIALOGS MESSAGE OFF
  DIALOGS ERROR OFF
 

 string $planoN= $PlanoP

 ACTIVATE Workplane $PlanoP


MODE WORKPLANE_CREATE ; INTERACTIVE GEOMETRY
   Macro Pause "Clique na face que deseja alinhar a vista" 


ACTIVATE Workplane "1"
ROTATE TRANSFORM TOP


COPY WORKPLANE $PlanoP
RENAME Workplane "$PlanoN" "INCLINADO_X"
MODE WORKPLANE_EDIT START "INCLINADO_X"
MODE WORKPLANE_EDIT ALIGN VIEW
MODE WORKPLANE_EDIT FINISH ACCEPT

delete workplane"1"&lt;/LI-CODE&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;is this corret?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 17:47:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12778516#M1772</guid>
      <dc:creator>abner_asafe</dc:creator>
      <dc:date>2024-05-16T17:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12779771#M1773</link>
      <description>&lt;P&gt;So you whant to change the rotation of the selected workplane with the rotation of the workplane the user created?&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 07:51:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12779771#M1773</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-05-17T07:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12779779#M1774</link>
      <description>&lt;P&gt;Yes exactly that&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 07:54:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12779779#M1774</guid>
      <dc:creator>abner_asafe</dc:creator>
      <dc:date>2024-05-17T07:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12779828#M1775</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;entity $PlanoP = INPUT ENTITY Workplane "Selecione o plano de trabalho principal"

string $temp = new_entity_name('workplane','')
MODE WORKPLANE_CREATE ${temp} INTERACTIVE GEOMETRY


Macro Pause "Clique na face que deseja alinhar a vista" 

ACTIVATE Workplane ${temp}

entity $t = entity('workplane',$temp)


bool $sucsess = set_workplane($PlanoP, entity('workplane',$temp).YAxis,entity('workplane',$temp).ZAxis, $PlanoP.Origin ) 


ACTIVATE Workplane ${PlanoP.Name}

purge workplane ${temp} yes&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 17 May 2024 08:22:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12779828#M1775</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-05-17T08:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12781244#M1776</link>
      <description>&lt;P&gt;works almost perfect i just need to create a copy of the initial selected workplane and aling this copy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 20:48:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12781244#M1776</guid>
      <dc:creator>abner_asafe</dc:creator>
      <dc:date>2024-05-17T20:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12781355#M1777</link>
      <description>&lt;P&gt;im not able to test this atm but try this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;entity $PlanoP = INPUT ENTITY Workplane "Selecione o plano de trabalho principal"


string $PlanoN = 'INCLINADO_X'

if entity_exists('workplane',$PlanoN) {
	$PlanoN = new_entity_name('workplane',$PlanoN)
}

create workplane $PlanoN

string $temp = new_entity_name('workplane','')
MODE WORKPLANE_CREATE ${temp} INTERACTIVE GEOMETRY


Macro Pause "Clique na face que deseja alinhar a vista" 

ACTIVATE Workplane ${temp}

entity $t = entity('workplane',$temp)


bool $sucsess = set_workplane($PlanoN, entity('workplane',$temp).YAxis,entity('workplane',$temp).ZAxis, $PlanoN.Origin ) 


ACTIVATE Workplane ${PlanoN.Name}

purge workplane ${temp} yes&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 21:59:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12781355#M1777</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-05-17T21:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12785864#M1778</link>
      <description>&lt;P&gt;it's giving an error in the "bool $sucess" function line&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2024 21:27:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12785864#M1778</guid>
      <dc:creator>abner_asafe</dc:creator>
      <dc:date>2024-05-20T21:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12786518#M1779</link>
      <description>&lt;LI-CODE lang="general"&gt;entity $PlanoP = INPUT ENTITY Workplane "Selecione o plano de trabalho principal"


string $PlanoN = 'INCLINADO_X'

if entity_exists('workplane',$PlanoN) {
	$PlanoN = new_entity_name('workplane',$PlanoN)
}

create workplane $PlanoN

bool $s = 0
$s = set_workplane(entity('workplane',$PlanoN),$PlanoP)

string $temp = new_entity_name('workplane','')
MODE WORKPLANE_CREATE ${temp} INTERACTIVE GEOMETRY


Macro Pause "Clique na face que deseja alinhar a vista" 

ACTIVATE Workplane ${temp}

entity $t = entity('workplane',$temp)


$s = set_workplane(entity('workplane',$PlanoN), entity('workplane',$temp).YAxis,entity('workplane',$temp).ZAxis, entity('workplane',$PlanoN).Origin ) 


ACTIVATE Workplane ${PlanoN}

purge workplane ${temp} yes&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 May 2024 06:43:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12786518#M1779</guid>
      <dc:creator>icse</dc:creator>
      <dc:date>2024-05-21T06:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help with this macro</title>
      <link>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12794013#M1780</link>
      <description>&lt;P&gt;Perfect thank you&lt;/P&gt;</description>
      <pubDate>Thu, 23 May 2024 20:56:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/powermill-forum/help-with-this-macro/m-p/12794013#M1780</guid>
      <dc:creator>abner_asafe</dc:creator>
      <dc:date>2024-05-23T20:56:38Z</dc:date>
    </item>
  </channel>
</rss>

