<?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: PARAGRAPH Problems in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180216#M21495</link>
    <description>Thanks for your help.  I ended up concating the 2 strings to one variable before assinging it as the PARAGRAPH name, and this seemed to make it work.</description>
    <pubDate>Thu, 04 Feb 2010 14:22:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-02-04T14:22:36Z</dc:date>
    <item>
      <title>PARAGRAPH Problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180212#M21491</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;I am having difficulties with the PARAGRAPH command, specifically with the name definition.  In the Cadimage Tools GDL Handbook it states that the name "can be either a variable value or a constant enclosed in quotation marks."&lt;BR /&gt;
&lt;BR /&gt;
I am trying to create a series of Paragraphs and TextBlocks on the fly, but am hung up on the naming. The following code is what I am attempting. This was I can generate a unique name for each PARAGRAPH but I keep getting an error in expression. This also happens if I remove the leading quotes (which I thought were required to make variable work with the PARAGRAPH command). Any ideas?&lt;BR /&gt;

&lt;PRE&gt;FOR loop1= 1 to unknownNumber1
     FOR loop2=1 to unknownNumber2
          stringValue1=STR(loop1, 1, 0)
          stringValue2=STR(loop2, 1, 0)
          PARAGRAPH ""+stringValue1+"_"+stringValue2 ...
     NEXT loop2
NEXT loop1
&lt;/PRE&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 01 Feb 2010 23:06:57 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180212#M21491</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-01T23:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: PARAGRAPH Problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180213#M21492</link>
      <description>A couple of things off the top...&lt;BR /&gt;
&lt;BR /&gt;
First: Use either the variable itself (without quotes) or a constant value which in the case of strings is text within quotes. This is typical for all GDL scripting (though there are a couple of confusing conditions like the VALUES statement which expects the variable name as a string constant in quotes).&lt;BR /&gt;
&lt;BR /&gt;
Second: The PARAGRAPH function is a tricky bu**er. Have you had it working before? I can't tell from your code if you have done the other contextual stuff you need for to make it work.</description>
      <pubDate>Mon, 01 Feb 2010 23:55:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180213#M21492</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-01T23:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: PARAGRAPH Problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180214#M21493</link>
      <description>Matthew,&lt;BR /&gt;
&lt;BR /&gt;
For simplicity sake, I left off the other parts of the PARAGRAPH command, as well as the TEXTBLOCK and RICHTEXT2 stuff.&lt;BR /&gt;
&lt;BR /&gt;
I have successfully used PARAGRAPH before with a static name, I just can't get it to work with a variable name.  I was throwing in the blank quotes because PARAGRAPH requires it for the text input if you use  variable. I thought it might need it for the name too, but it seems to balk at everything I try.  I have also tried to concat the stingValues before using it as the PARAGRAPH name, but that didn't work either.</description>
      <pubDate>Tue, 02 Feb 2010 03:45:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180214#M21493</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-02T03:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: PARAGRAPH Problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180215#M21494</link>
      <description>Have you defined the variables in master script? I just had a similar problem where I tried to request a parameter value from an object for a label and use this value in a paragraph. It did not work when I did the request and variable definition in the 2d script, but when I placed the request and variable definition in master script, the paragraph started working like magic...&lt;BR /&gt;
&lt;BR /&gt;
--EDIT&lt;BR /&gt;
&lt;BR /&gt;
I spoke too soon, in my overwhelming enthusiasm. This does not work. Crap. If anyone knows how to get a string variable actually working inside a paragraph, please share your wisdom.&lt;BR /&gt;
&lt;BR /&gt;
--EDIT2&lt;BR /&gt;
&lt;BR /&gt;
It seems that in my case the paragraph variable did not work because the variable I used was not initialized as a string. I got it to working now.&lt;BR /&gt;
You might try initializing your stringValue1 and stringValue2 (before the paragraph part) as follows:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;stringValue1=""
stringValue2=""
&lt;/PRE&gt;

(Sorry about the extensive editing  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_redface.gif" style="display : inline;" /&gt; )</description>
      <pubDate>Thu, 04 Feb 2010 08:58:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180215#M21494</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-04T08:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: PARAGRAPH Problems</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180216#M21495</link>
      <description>Thanks for your help.  I ended up concating the 2 strings to one variable before assinging it as the PARAGRAPH name, and this seemed to make it work.</description>
      <pubDate>Thu, 04 Feb 2010 14:22:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/PARAGRAPH-Problems/m-p/180216#M21495</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-02-04T14:22:36Z</dc:date>
    </item>
  </channel>
</rss>

