<?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 to rotate and change size of an attribute inside a block globally in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11736974#M34757</link>
    <description>&lt;P&gt;Anything..........&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:&lt;STRONG&gt;AttPicRot&lt;/STRONG&gt; ( / s a i r)

  (if (and (setq s (ssget '((0 . "INSERT") (66 . 1))))
	   (setq r (car (nentsel "\nPick att to rotare: ")))
	   (setq r (cdr (assoc 2 (entget r))))
	   (setq a (getangle "\nSpecify angle: "))
	   )
    (repeat (setq i (sslength s))
      (setq e (ssname s (setq i (1- i))))
      (while (and (setq e (entnext e))
		  (= "ATTRIB" (cdr (assoc 0 (entget e)))))
	(and (= r (cdr (assoc 2 (entget e))))
	     (setpropertyvalue e "Rotation" a)))))
  (princ)
  )



(defun c:&lt;STRONG&gt;AttAllRot&lt;/STRONG&gt; ( / s a i)

  (if (and (setq s (ssget '((0 . "INSERT") (66 . 1))))
	   (setq a (getangle "\nSpecify angle: "))
	   )
    (repeat (setq i (sslength s))
      (setq e (ssname s (setq i (1- i))))
      (while (and (setq e (entnext e))
		  (= "ATTRIB" (cdr (assoc 0 (entget e)))))
	(setpropertyvalue e "Rotation" a))))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Feb 2023 17:25:49 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2023-02-07T17:25:49Z</dc:date>
    <item>
      <title>Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727889#M34744</link>
      <description>&lt;P&gt;Hi&amp;nbsp; I'm wondering or looking to find if anyone has an lisp routine that can help me rotate an attribute to horizontal to the ucs&amp;nbsp; (it has angle of&amp;nbsp;20º to make it look horizontal) and change the height of the text to 125...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so what i need to do as you'll see in the snapshots I've provided, I need to change the height from&amp;nbsp;187.4999999999996 to 125 and the rotation from&amp;nbsp;303.526847085602 to 20.... globally to all of the same block in the drawing...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;snapshot 1 is the block in question&lt;/P&gt;&lt;P&gt;snapshot 2 is the attribute information I need to change&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does this make sense and can anyone help?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:22:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727889#M34744</guid>
      <dc:creator>matthew.mccormack2257W</dc:creator>
      <dc:date>2023-02-03T16:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727914#M34745</link>
      <description>&lt;P&gt;It sets an absolute angle.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:AttRot ( / s a i)

  (if (and (setq s (ssget '((0 . "INSERT") (66 . 1))))
	   (setq a (getangle "\nSpecify angle: "))
	   )
    (repeat (setq i (sslength s))
      (setpropertyvalue (entnext (ssname s (setq i (1- i)))) "Rotation" a)))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:45:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727914#M34745</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-02-03T16:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727922#M34746</link>
      <description>&lt;P&gt;Thanks for that... but unfortunately that didnt work, nothing changed in the attribute... &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727922#M34746</guid>
      <dc:creator>matthew.mccormack2257W</dc:creator>
      <dc:date>2023-02-03T16:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727924#M34747</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for that... but unfortunately that didnt work, nothing changed in the attribute...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="matthewmccormack2257W_0-1675442019125.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1171292i482E9F34B91702DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="matthewmccormack2257W_0-1675442019125.png" alt="matthewmccormack2257W_0-1675442019125.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:33:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727924#M34747</guid>
      <dc:creator>matthew.mccormack2257W</dc:creator>
      <dc:date>2023-02-03T16:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727927#M34748</link>
      <description>&lt;P&gt;Then post a sample dwg&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:34:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727927#M34748</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-02-03T16:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727937#M34749</link>
      <description>&lt;P&gt;I've attached a sample dwg... I need to change and rotate all the L1 and L2 text so its size is 125 and its horizontal to the ucs...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;many thanks for your assistance with this&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:39:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727937#M34749</guid>
      <dc:creator>matthew.mccormack2257W</dc:creator>
      <dc:date>2023-02-03T16:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727961#M34750</link>
      <description>&lt;P&gt;It worked.. it just did not show the prompt when blocks were pre-selected.&lt;/P&gt;
&lt;P&gt;Try the updated code.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:46:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727961#M34750</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-02-03T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727973#M34751</link>
      <description>&lt;P&gt;Thank you, I tried again and the prompt came up this time and it worked, nice one! buts that's only half the solution I also need it to change the text height from 187..... to 125&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:51:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727973#M34751</guid>
      <dc:creator>matthew.mccormack2257W</dc:creator>
      <dc:date>2023-02-03T16:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727977#M34752</link>
      <description>&lt;P&gt;change the height globally that is... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 16:51:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11727977#M34752</guid>
      <dc:creator>matthew.mccormack2257W</dc:creator>
      <dc:date>2023-02-03T16:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11728161#M34753</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12796669"&gt;@matthew.mccormack2257W&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;... but unfortunately that didnt work, nothing changed in the attribute...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you run ATTSYNC afterwards?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 18:01:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11728161#M34753</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-02-03T18:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11728333#M34754</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12796669"&gt;@matthew.mccormack2257W&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;change the height globally that is... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not sure whether this means that you figured it out or not... In any case...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:AttHeight ( / s a i)

  (if (and (setq s (ssget '((0 . "INSERT") (66 . 1))))
	   (setq a (getreal "\nSpecify height: "))
	   )
    (repeat (setq i (sslength s))
      (setpropertyvalue (entnext (ssname s (setq i (1- i)))) "Height" a)))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Feb 2023 18:58:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11728333#M34754</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-02-03T18:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11732376#M34755</link>
      <description>&lt;P&gt;Perfect!.... thank you ever so much for your time and help!.... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 08:55:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11732376#M34755</guid>
      <dc:creator>matthew.mccormack2257W</dc:creator>
      <dc:date>2023-02-06T08:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11736464#M34756</link>
      <description>&lt;P&gt;just a quick one...&amp;nbsp; I've been using the lisp that you provided, great! Thank you... but whilst using it I've noticed it does rotate the first attribute in a block but if the block as two editable attributes (or more I'm guessing) the 2nd attribute doesnt rotate...&amp;nbsp; is there away to adjust the lisp to include the 2nd (or more) to rotate them,&amp;nbsp; or a way of selecting the attribute you want to rotate (within a block) and the lisp would rotate it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 14:58:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11736464#M34756</guid>
      <dc:creator>matthew.mccormack2257W</dc:creator>
      <dc:date>2023-02-07T14:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11736974#M34757</link>
      <description>&lt;P&gt;Anything..........&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:&lt;STRONG&gt;AttPicRot&lt;/STRONG&gt; ( / s a i r)

  (if (and (setq s (ssget '((0 . "INSERT") (66 . 1))))
	   (setq r (car (nentsel "\nPick att to rotare: ")))
	   (setq r (cdr (assoc 2 (entget r))))
	   (setq a (getangle "\nSpecify angle: "))
	   )
    (repeat (setq i (sslength s))
      (setq e (ssname s (setq i (1- i))))
      (while (and (setq e (entnext e))
		  (= "ATTRIB" (cdr (assoc 0 (entget e)))))
	(and (= r (cdr (assoc 2 (entget e))))
	     (setpropertyvalue e "Rotation" a)))))
  (princ)
  )



(defun c:&lt;STRONG&gt;AttAllRot&lt;/STRONG&gt; ( / s a i)

  (if (and (setq s (ssget '((0 . "INSERT") (66 . 1))))
	   (setq a (getangle "\nSpecify angle: "))
	   )
    (repeat (setq i (sslength s))
      (setq e (ssname s (setq i (1- i))))
      (while (and (setq e (entnext e))
		  (= "ATTRIB" (cdr (assoc 0 (entget e)))))
	(setpropertyvalue e "Rotation" a))))
  (princ)
  )
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2023 17:25:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11736974#M34757</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2023-02-07T17:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Looking to rotate and change size of an attribute inside a block globally</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11738856#M34758</link>
      <description>&lt;P&gt;Awesome Many Thanks once again...&amp;nbsp; wish I knew how to write lisp language, it would be helpful.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 09:48:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/looking-to-rotate-and-change-size-of-an-attribute-inside-a-block/m-p/11738856#M34758</guid>
      <dc:creator>matthew.mccormack2257W</dc:creator>
      <dc:date>2023-02-08T09:48:28Z</dc:date>
    </item>
  </channel>
</rss>

