<?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: align text in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8352714#M97819</link>
    <description>&lt;P&gt;Post an example dwg with before and after.&lt;/P&gt;</description>
    <pubDate>Tue, 23 Oct 2018 10:55:50 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2018-10-23T10:55:50Z</dc:date>
    <item>
      <title>align text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8352687#M97818</link>
      <description>&lt;P&gt;Hi every one,&lt;/P&gt;&lt;P&gt;Can someone help me with a lisp that align text this way:&lt;/P&gt;&lt;P&gt;when calling the lisp it asks "right / Left" , if I click &lt;STRONG&gt;left&lt;/STRONG&gt; ,and click on a text1 and text2 it will align them text2 after text1 from left to right ( but only with one space between them not connected),and when I click text3 it will add him the same way after text 2, until I right click my mouse and it will break the command.&lt;/P&gt;&lt;P&gt;And if I click &lt;STRONG&gt;Right&lt;/STRONG&gt; it will do the same but will add the text one after another from right to left.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will be very helpfull for me,&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 10:45:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8352687#M97818</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2018-10-23T10:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: align text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8352714#M97819</link>
      <description>&lt;P&gt;Post an example dwg with before and after.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 10:55:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8352714#M97819</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2018-10-23T10:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: align text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8352777#M97820</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;here is a dwg as I want:&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1NvpCJYse3tEakYCvY6VHyIcXr4CiZ2Gq/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1NvpCJYse3tEakYCvY6VHyIcXr4CiZ2Gq/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The message that I want to apear at the start is :&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1mWRwVW9C888naFX5yL6CbKi0GqbELLv3/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1mWRwVW9C888naFX5yL6CbKi0GqbELLv3/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a code similar to what I want :&lt;/P&gt;&lt;PRE&gt;(princ "\CT.LSP (Combine Text) - Matt Pittman\n")
(defun C:ct (/ );1strg text1 t1 spc 2strg text2 t2 comb)
(setq 1strg (entget (car (entsel "\nPick 1st Text.. "))))
(setq text1 (assoc 1 1strg))
(setq t1 (cdr (assoc 1 1strg)))
(setq spc " ")
(setq 2string (entsel "\nPick 2nd Text.. "))
(setq 2s (car 2string))
(setq 2strg (entget (car 2string)))
(setq text2 (assoc 1 2strg))
(setq t2 (cdr (assoc 1 2strg)))
(entdel 2s)
(setq comb (strcat t1 spc t2))
(setq comb (cons 1 comb))
(setq 1strg (subst comb text1 1strg))
(entmod 1strg)
(princ)
)&lt;/PRE&gt;&lt;P&gt;but I want that at first it will asks for &lt;STRONG&gt;right or left&lt;/STRONG&gt; and then after clicking the first text1 it will say &lt;STRONG&gt;add text&lt;/STRONG&gt; and then I click text2 and it will put it after the text with one space but with no connection ( seperate texts),&amp;nbsp;&lt;/P&gt;&lt;P&gt;and I can continue clicking another texts and it will add them after the text2 etc, and when I right click it will finish the command.&lt;/P&gt;&lt;P&gt;The same thing if I choose Right , but it will add the texts one after another from right to left.&lt;/P&gt;&lt;P&gt;I hope I clear now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 11:50:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8352777#M97820</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2018-10-23T11:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: align text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8353239#M97821</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3686215"&gt;@ami&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;...&amp;nbsp;I want that at first it will asks for &lt;STRONG&gt;right or left&lt;/STRONG&gt; and then after clicking the first text1 it will say &lt;STRONG&gt;add text&lt;/STRONG&gt; and then I click text2 and it will put it after the text with one space but with no connection ( seperate texts),&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and I can continue clicking another texts and it will add them after the text2 etc, and when I right click it will finish the command.&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Give the attached &lt;FONT color="#000000"&gt;&lt;STRONG&gt;TextRow.lsp&lt;/STRONG&gt;&lt;/FONT&gt; a try.&amp;nbsp; See the comments at the top.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It doesn't place things apart by "one space" in the text-character sense, but by "&lt;EM&gt;some&lt;/EM&gt;&amp;nbsp; space," which I chose to be half the text height of the initial object, but you can adjust that.&amp;nbsp; [It &lt;EM&gt;could&lt;/EM&gt;&amp;nbsp; be made to actually make it the true size of a space in the Style and height of the initial object, but it would mean creating a temporary and invisible Text object with one space as its content, and getting its bounding box to determine the gap size.&amp;nbsp; It should be able to delete that before proceeding, but it seems "risky" to create an object that can't be seen or selected later if somehow it doesn't get deleted.]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works with multiple Text/Mtext objects of &lt;EM&gt;different heights from each other&lt;/EM&gt;, but the gap between all of them will be half the text height of the &lt;EM&gt;first&lt;/EM&gt;&amp;nbsp; one selected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want Text&amp;nbsp;&lt;EM&gt;baselines&lt;/EM&gt;&amp;nbsp; to line up, rather than bounding-box bottom edges, &lt;EM&gt;and&lt;/EM&gt;&amp;nbsp; if you would always be selecting &lt;EM&gt;only&lt;/EM&gt;&amp;nbsp; plain-Text objects, that could probably be worked out, but it would be more complicated.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:08:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8353239#M97821</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-10-23T14:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: align text</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8353252#M97822</link>
      <description>&lt;P&gt;P E R F E C T ! ! !&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much!&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;, it will be very usefull for me.&lt;/P&gt;&lt;P&gt;Eyal&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 14:02:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/align-text/m-p/8353252#M97822</guid>
      <dc:creator>ami</dc:creator>
      <dc:date>2018-10-23T14:02:31Z</dc:date>
    </item>
  </channel>
</rss>

