<?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: Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11339903#M42512</link>
    <description>&lt;P&gt;That works perfectly.&amp;nbsp; I can isolate the racks rotate 180 and manipulate only them. Since rotating them places them in a different position I can select similar and move each type of rack back into position.&amp;nbsp; THANKS!&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 12:31:52 GMT</pubDate>
    <dc:creator>johnlagasse</dc:creator>
    <dc:date>2022-08-04T12:31:52Z</dc:date>
    <item>
      <title>Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337404#M42504</link>
      <description>&lt;P&gt;I have a client that created racks and inserted them at 0 and 180 degrees. I'm trying to rotate the 180 degree racks back to 0. I have another app that is replacing the racks and when they are at 180 they don't land where they are supposed to.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 12:18:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337404#M42504</guid>
      <dc:creator>johnlagasse</dc:creator>
      <dc:date>2022-08-03T12:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337514#M42505</link>
      <description>&lt;PRE&gt;(defun c:RotateB180 ( / s i)
  (if (setq s (ssget (list '(0 . "INSERT") (cons 50 pi))))
    (repeat (setq i (sslength s))
      (setpropertyvalue (ssname s (setq i (1- i))) "Rotation" 0.)))
  (princ)
  )
&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2022 13:13:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337514#M42505</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-08-03T13:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337539#M42506</link>
      <description>&lt;P&gt;I have a thousand or so blocks where some are inserted at 0 and some are 180. I want to select all the blocks but only have the blocks that are rotated 180 degrees to be in the selection set. Then I want to isolate them so I know which are at 180, then rotate them by 180 degrees.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 13:27:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337539#M42506</guid>
      <dc:creator>johnlagasse</dc:creator>
      <dc:date>2022-08-03T13:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337556#M42507</link>
      <description>&lt;P&gt;Are you sure you are in the right place?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 13:33:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337556#M42507</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-08-03T13:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337649#M42508</link>
      <description>&lt;P&gt;The code I've posted selects all blocks with the "Rotation" property of 180°(pi radians in fact) and sets the rotation to 0.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 20:39:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337649#M42508</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-08-03T20:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337654#M42509</link>
      <description>&lt;P&gt;Wouldn't this be where I'd ask for LISP help.&amp;nbsp; The rotate 180 LISP you created works great. Just wondering how to select blocks based on their rotation angle. I'm just getting back into the LISP world and not sure how to write a LISP that will do that. I'm very rusty. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:13:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337654#M42509</guid>
      <dc:creator>johnlagasse</dc:creator>
      <dc:date>2022-08-03T14:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337662#M42510</link>
      <description>&lt;P&gt;Sorry I was using it wrong.&amp;nbsp; Works great!&amp;nbsp; Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:15:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337662#M42510</guid>
      <dc:creator>johnlagasse</dc:creator>
      <dc:date>2022-08-03T14:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337669#M42511</link>
      <description>&lt;P&gt;Regards&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12533513"&gt;@johnlagasse&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;;;;Rotate blocks to 0 degree angle
(defun c:rtb (/ s i)
  (setq s (ssget (list '(0 . "insert") (cons 50 pi))))
  (repeat (setq i (sslength s))
    (setq sn (entget (ssname s (setq i (1- i)))))
    (entmod (subst (cons 50 0) (assoc 50 sn) sn))
  )
)

;;;It only selects blocks rotated 180 degrees.
(defun c:stb (/ s i)
  (setq s (ssget (list '(0 . "insert") (cons 50 pi))))
  (sssetfirst nil s)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2022 14:37:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11337669#M42511</guid>
      <dc:creator>calderg1000</dc:creator>
      <dc:date>2022-08-03T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11339903#M42512</link>
      <description>&lt;P&gt;That works perfectly.&amp;nbsp; I can isolate the racks rotate 180 and manipulate only them. Since rotating them places them in a different position I can select similar and move each type of rack back into position.&amp;nbsp; THANKS!&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 12:31:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11339903#M42512</guid>
      <dc:creator>johnlagasse</dc:creator>
      <dc:date>2022-08-04T12:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select all Blocks rotated 180 degrees, Isolate them, then rotate all by 180 degrees at their insertion point</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11343858#M42513</link>
      <description>Glad to help, cheers</description>
      <pubDate>Sat, 06 Aug 2022 13:16:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/select-all-blocks-rotated-180-degrees-isolate-them-then-rotate/m-p/11343858#M42513</guid>
      <dc:creator>calderg1000</dc:creator>
      <dc:date>2022-08-06T13:16:20Z</dc:date>
    </item>
  </channel>
</rss>

