<?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 Automated To/From Wire Label in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automated-to-from-wire-label/m-p/11186893#M45230</link>
    <description>&lt;P&gt;I could use some help with creating a LISP file to generate wire labels. Here is how I would like the program to work (see pic and attached sample dwg).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User loads and runs routine&lt;/P&gt;&lt;P&gt;1. User is prompted to SELECT 1ST blocktxt. Program extracts the first 8 characters from the model tag, it skips counting spaces. Or extract all characters up to the left bracket, which ever comes first. Then append a colon and space&lt;BR /&gt;2) Next the user is prompted to SELECT 1st text, which extracts the last digit or last two digits.&amp;nbsp; If there are no digits at the end of the string then extract the last word (eg OUT). Then append a line break&lt;BR /&gt;3) Then the user is prompted to SELECT 2nd blocktxt, program extracts the first 8 characters from the model tag, skip counting spaces. Or extract all characters up to the left bracket, which ever comes first. Then append a colon and space&lt;BR /&gt;4) Next the user is prompted to SELECT 2nd text, which extracts the last digit or last two digits.&amp;nbsp; If there are no digits at the end of the string then extract the last word (eg OUT).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;5) Allow user to place resulting mtext in the drawing on the Label layer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the desired results on the Label layer from the drawing and pic below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;DP DA 2: 1&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;TH-55CQE: 1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;I found this LISP that extracts all text from multiple blocks and converts it to mtext. &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;A href="https://autocadtips1.com/2011/04/26/autolisp-attribute-to-text-mtext/" target="_blank" rel="noopener"&gt;https://autocadtips1.com/2011/04/26/autolisp-attribute-to-text-mtext/&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;And this LISP combines multiple selected text in to one mtext&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;A href="http://www.lee-mac.com/text2mtext.html" target="_blank"&gt;http://www.lee-mac.com/text2mtext.html&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;I thought these&amp;nbsp; two LISPs might be helpful as a starting place.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cablelabelpic.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1071764iAFD74BE604D6423E/image-size/large?v=v2&amp;amp;px=999" role="button" title="cablelabelpic.JPG" alt="cablelabelpic.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2022 12:50:03 GMT</pubDate>
    <dc:creator>joel.bennettFVVY2</dc:creator>
    <dc:date>2022-05-25T12:50:03Z</dc:date>
    <item>
      <title>Automated To/From Wire Label</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automated-to-from-wire-label/m-p/11186893#M45230</link>
      <description>&lt;P&gt;I could use some help with creating a LISP file to generate wire labels. Here is how I would like the program to work (see pic and attached sample dwg).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User loads and runs routine&lt;/P&gt;&lt;P&gt;1. User is prompted to SELECT 1ST blocktxt. Program extracts the first 8 characters from the model tag, it skips counting spaces. Or extract all characters up to the left bracket, which ever comes first. Then append a colon and space&lt;BR /&gt;2) Next the user is prompted to SELECT 1st text, which extracts the last digit or last two digits.&amp;nbsp; If there are no digits at the end of the string then extract the last word (eg OUT). Then append a line break&lt;BR /&gt;3) Then the user is prompted to SELECT 2nd blocktxt, program extracts the first 8 characters from the model tag, skip counting spaces. Or extract all characters up to the left bracket, which ever comes first. Then append a colon and space&lt;BR /&gt;4) Next the user is prompted to SELECT 2nd text, which extracts the last digit or last two digits.&amp;nbsp; If there are no digits at the end of the string then extract the last word (eg OUT).&amp;nbsp;&amp;nbsp;&lt;BR /&gt;5) Allow user to place resulting mtext in the drawing on the Label layer&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the desired results on the Label layer from the drawing and pic below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;DP DA 2: 1&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;TH-55CQE: 1&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;I found this LISP that extracts all text from multiple blocks and converts it to mtext. &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;A href="https://autocadtips1.com/2011/04/26/autolisp-attribute-to-text-mtext/" target="_blank" rel="noopener"&gt;https://autocadtips1.com/2011/04/26/autolisp-attribute-to-text-mtext/&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;And this LISP combines multiple selected text in to one mtext&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;A href="http://www.lee-mac.com/text2mtext.html" target="_blank"&gt;http://www.lee-mac.com/text2mtext.html&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;I thought these&amp;nbsp; two LISPs might be helpful as a starting place.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cablelabelpic.JPG" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1071764iAFD74BE604D6423E/image-size/large?v=v2&amp;amp;px=999" role="button" title="cablelabelpic.JPG" alt="cablelabelpic.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 12:50:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automated-to-from-wire-label/m-p/11186893#M45230</guid>
      <dc:creator>joel.bennettFVVY2</dc:creator>
      <dc:date>2022-05-25T12:50:03Z</dc:date>
    </item>
  </channel>
</rss>

