<?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: Rotate a many devices in EAGLE Forum (Read-Only)</title>
    <link>https://forums.autodesk.com/t5/eagle-forum-read-only/rotate-a-many-devices/m-p/10782385#M4041</link>
    <description>That worked perfectly. Thanks.</description>
    <pubDate>Thu, 25 Nov 2021 20:54:03 GMT</pubDate>
    <dc:creator>banksysan</dc:creator>
    <dc:date>2021-11-25T20:54:03Z</dc:date>
    <item>
      <title>Rotate a many devices</title>
      <link>https://forums.autodesk.com/t5/eagle-forum-read-only/rotate-a-many-devices/m-p/10777523#M4038</link>
      <description>&lt;P&gt;I have a matrix of LEDs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="banksysan_0-1637699299759.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/992988i1BD9641B9EFBCA45/image-size/medium?v=v2&amp;amp;px=400" role="button" title="banksysan_0-1637699299759.png" alt="banksysan_0-1637699299759.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'd like to rotate them all 90° clockwise.&amp;nbsp; I know I can click on them in turn, rotating them.&amp;nbsp; It seems I can select them all and rotate the group around a single pivot.&amp;nbsp; I can list all the devices in the CLI and use the rotate command&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;rotate R90 D1 D2 D3 D4...&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;Can I rotate them each around their individual&amp;nbsp;pivots in one go?&lt;/LI&gt;&lt;LI&gt;Can I use a pattern to match the devices I want to apply the command to e.g.&lt;PRE&gt;rotate R90 D[1..16]&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 23 Nov 2021 20:36:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum-read-only/rotate-a-many-devices/m-p/10777523#M4038</guid>
      <dc:creator>banksysan</dc:creator>
      <dc:date>2021-11-23T20:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate a many devices</title>
      <link>https://forums.autodesk.com/t5/eagle-forum-read-only/rotate-a-many-devices/m-p/10779828#M4039</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6886315"&gt;@banksysan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you're doing well. I'll answer your questions directly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Yes, the only way to do this is actually using the Inspector. Form a group and then in the inspector change the Angle. This is the only workflow that will cause the devices to rotate about their individual origins.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Currently pattern will not be able to perform this type of operation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if there's anything else I can do for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 24 Nov 2021 18:02:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum-read-only/rotate-a-many-devices/m-p/10779828#M4039</guid>
      <dc:creator>jorge_garcia</dc:creator>
      <dc:date>2021-11-24T18:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate a many devices</title>
      <link>https://forums.autodesk.com/t5/eagle-forum-read-only/rotate-a-many-devices/m-p/10782319#M4040</link>
      <description>&lt;P&gt;hi banksysan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can do what your talking about with a simple ulp. here i made an example for you. first group the items you want to rotate, then call it by typing&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;run rotate_in_place &amp;lt;angle&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;and it will rotate all the parts in the group about their respective origins. if you supply &amp;lt;angle&amp;gt; it will use that angle but if you don't pass an angle it uses 90 as the default.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note that on schematic view you can only use orthogonal angles ie 90 180 270 etc (eagle limitation, not mine)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;#usage "rotates items in a group about the individual elements origin."

// scott monk
// updated nov 25 2021
// ver 0.1
real rotation;
if(argc == 1){
	rotation = 90; //default
}else if(argc == 2){
	rotation = strtod(argv[1]);
}

string cmd;
string temp;
if(schematic){
	schematic(S){
		S.parts(P){
			P.instances(I){
				if(ingroup(I)){
					sprintf(temp, "rotate R%f '%s' ;", rotation, I.name);
					cmd += temp;
				}
			}
		}
	}
}else{
	if(board){
		board(B){
			B.elements(E){
				if(ingroup(E)){
					sprintf(temp, "rotate R%f '%s' ;", rotation, E.name);
					cmd += temp;
				}
			}
		}
	}
}
exit(cmd);
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Nov 2021 20:01:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum-read-only/rotate-a-many-devices/m-p/10782319#M4040</guid>
      <dc:creator>mtl_asm</dc:creator>
      <dc:date>2021-11-25T20:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rotate a many devices</title>
      <link>https://forums.autodesk.com/t5/eagle-forum-read-only/rotate-a-many-devices/m-p/10782385#M4041</link>
      <description>That worked perfectly. Thanks.</description>
      <pubDate>Thu, 25 Nov 2021 20:54:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/eagle-forum-read-only/rotate-a-many-devices/m-p/10782385#M4041</guid>
      <dc:creator>banksysan</dc:creator>
      <dc:date>2021-11-25T20:54:03Z</dc:date>
    </item>
  </channel>
</rss>

