<?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: Use return value of command to fill a title block in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/use-return-value-of-command-to-fill-a-title-block/m-p/8346037#M97949</link>
    <description>&lt;DIV style="line-height:1.3em; margin: 15px 100px 100px 65px"&gt;
&lt;P&gt;What do you mean by "the value of the title block"?&lt;BR /&gt;&lt;BR /&gt;Do you mean you want to push the string returned by your function into a TEXT or MTEXT object?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 19 Oct 2018 14:38:21 GMT</pubDate>
    <dc:creator>rkmcswain</dc:creator>
    <dc:date>2018-10-19T14:38:21Z</dc:date>
    <item>
      <title>Use return value of command to fill a title block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/use-return-value-of-command-to-fill-a-title-block/m-p/8346026#M97948</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to enter a title block into a drawing. The value of the title block should be determined by my own ARX function (or variable).&lt;/P&gt;&lt;P&gt;How would I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My ARX function returns a string:&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="phgetscaletext.png" style="width: 343px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/559504i16CD883644A29C60/image-size/large?v=v2&amp;amp;px=999" role="button" title="phgetscaletext.png" alt="phgetscaletext.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rudiger&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:34:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/use-return-value-of-command-to-fill-a-title-block/m-p/8346026#M97948</guid>
      <dc:creator>Schierz</dc:creator>
      <dc:date>2018-10-19T14:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Use return value of command to fill a title block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/use-return-value-of-command-to-fill-a-title-block/m-p/8346037#M97949</link>
      <description>&lt;DIV style="line-height:1.3em; margin: 15px 100px 100px 65px"&gt;
&lt;P&gt;What do you mean by "the value of the title block"?&lt;BR /&gt;&lt;BR /&gt;Do you mean you want to push the string returned by your function into a TEXT or MTEXT object?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:38:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/use-return-value-of-command-to-fill-a-title-block/m-p/8346037#M97949</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2018-10-19T14:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Use return value of command to fill a title block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/use-return-value-of-command-to-fill-a-title-block/m-p/8346063#M97950</link>
      <description>&lt;P&gt;Yes, I want to push it to an MTEXT object. The idea was, to use a title block to do so, like a system variable, but my own varible or the result of my function, i.e. like the modemacro system variable:&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="titleblock.png" style="width: 985px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/559513iCD47AF6B2ED6DF10/image-size/large?v=v2&amp;amp;px=999" role="button" title="titleblock.png" alt="titleblock.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:47:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/use-return-value-of-command-to-fill-a-title-block/m-p/8346063#M97950</guid>
      <dc:creator>Schierz</dc:creator>
      <dc:date>2018-10-19T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use return value of command to fill a title block</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/use-return-value-of-command-to-fill-a-title-block/m-p/8351510#M97951</link>
      <description>&lt;P&gt;I found a solution by myself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Solution: Use a lisp variable to push the output of an ObjectARX function to a title block.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. The function `phgetscaltext' returns a string. Push the result of&amp;nbsp;`phgetscaltext' &amp;nbsp;to a lisp variable, i.e. phscale:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phscale1.png" style="width: 341px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/560545i210CAB83ED101531/image-size/large?v=v2&amp;amp;px=999" role="button" title="phscale1.png" alt="phscale1.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. By creating an mtext, insert the lisp variable phscale as title block into the mtext:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phscale2.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/560546iEBC516F6A1D129D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="phscale2.png" alt="phscale2.png" /&gt;&lt;/span&gt;3. After changing the internal value:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phscale3.png" style="width: 414px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/560549i4F746C7FB4E4A445/image-size/large?v=v2&amp;amp;px=999" role="button" title="phscale3.png" alt="phscale3.png" /&gt;&lt;/span&gt;r&lt;/P&gt;&lt;P&gt;4. I call my function to change the lisp variable phscale and the _regen to update the title block:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="phscale4.png" style="width: 455px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/560550i7CDFB3ED8A09611E/image-size/large?v=v2&amp;amp;px=999" role="button" title="phscale4.png" alt="phscale4.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 21:37:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/use-return-value-of-command-to-fill-a-title-block/m-p/8351510#M97951</guid>
      <dc:creator>Schierz</dc:creator>
      <dc:date>2018-10-22T21:37:50Z</dc:date>
    </item>
  </channel>
</rss>

