<?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 GDL Question - Paragraph Linking in GDL</title>
    <link>https://community.graphisoft.com/t5/GDL/GDL-Question-Paragraph-Linking/m-p/288615#M3507</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi GDL Experts,&lt;BR /&gt;&lt;BR /&gt;Here is my GDL code for PARAGRAPH syntax below. I can enter the text manually in the code by opening the GDL object and overwriting the text in it. Currently that works on one off basis, but I have a project where I need to add several different variations of the paragraph using the same GDL object.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;!!!Sample PARAGRAPH syntax (Start):
&lt;I&gt;!===PARAGRAPH
&lt;FONT color="#0080FF"&gt;define style{2} "AC_STYLE_1" "Arial", 3, 0 

paragraph "AC_PRG_1" 1, 0, 0, 0, 1
pen 1
set style "AC_STYLE_1" 

"This is an example of paragraph text. I have to manually open the GDL Object and enter this paragraph text in the code each time I want to change my GDL object."

endparagraph 

textblock "AC_TEXTBLOCK_1" 30, 4, 0, 1, 1, 1, "AC_PRG_1" 

richtext2 0,0,"AC_TEXTBLOCK_1" &lt;/FONT&gt;&lt;/I&gt;
!!!Sample PARAGRAPH syntax (End)&lt;/PRE&gt;
&lt;BR /&gt;Is it possible to build a list of commonly used paragraphs in a separate tab delimited .TXT file, and have the GDL object retrieve the relevant paragraphs just by typing their reference. I have found an example where GDL can import the following notes from a text file:&lt;BR /&gt;&lt;BR /&gt;SHEETS.TXT File Contents:
&lt;PRE&gt;&lt;FONT color="#0080FF"&gt;A01 Ground Floor 1:50
A02 First Floor 1:50
A03 Roofs 1:50
A04 Section A 1:20
A05 Section B 1:20&lt;/FONT&gt;&lt;/PRE&gt;
&lt;BR /&gt;GDL Script to extract a specific line from the SHEETS.TXT file:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;!!!Sample DATA EXTRACT syntax (Start):
&lt;I&gt;&lt;FONT color="#0080FF"&gt;!********* RECORD SEARCH (DATA ADD-ON)
ch=OPEN("DATA",”SHEETS.TXT”,"MODE=RO, DIALOG")
searchfield="A03"
nr=INPUT(ch,searchfield,1,
sheetname, sheetscale)
text2 0,0,searchfield
text2 1,0,sheetname
text2 2,0,sheetscale
CLOSE ch&lt;/FONT&gt;&lt;/I&gt;
!!!Sample DATA EXTRACT syntax (Endt):&lt;/PRE&gt;
&lt;BR /&gt;Result:&lt;BR /&gt;A03 Roofs 1:50&lt;BR /&gt;&lt;BR /&gt;Is it possible to write a piece of code inside the PARAGRAPH "____" syntax that can be used to link the code to a specific line in a TXT file for instance? Perhaps the ID# could be used and the same ID# number in the start of the TXT file to tell the code which text to extract?&lt;BR /&gt;&lt;BR /&gt;Ideally my goal is to have a simple TXT file (or excel file which I can export to TXT) and then just by entering a number, the GDL Paragraph Object can enter the relevant text from the TXT file. This would be a huge benefit to me and so appreciated if anyone has a way to do this.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance,&lt;/DIV&gt;</description>
    <pubDate>Tue, 14 Sep 2021 06:56:23 GMT</pubDate>
    <dc:creator>GDL Enthusiast</dc:creator>
    <dc:date>2021-09-14T06:56:23Z</dc:date>
    <item>
      <title>GDL Question - Paragraph Linking</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Question-Paragraph-Linking/m-p/288615#M3507</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi GDL Experts,&lt;BR /&gt;&lt;BR /&gt;Here is my GDL code for PARAGRAPH syntax below. I can enter the text manually in the code by opening the GDL object and overwriting the text in it. Currently that works on one off basis, but I have a project where I need to add several different variations of the paragraph using the same GDL object.&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;!!!Sample PARAGRAPH syntax (Start):
&lt;I&gt;!===PARAGRAPH
&lt;FONT color="#0080FF"&gt;define style{2} "AC_STYLE_1" "Arial", 3, 0 

paragraph "AC_PRG_1" 1, 0, 0, 0, 1
pen 1
set style "AC_STYLE_1" 

"This is an example of paragraph text. I have to manually open the GDL Object and enter this paragraph text in the code each time I want to change my GDL object."

endparagraph 

textblock "AC_TEXTBLOCK_1" 30, 4, 0, 1, 1, 1, "AC_PRG_1" 

richtext2 0,0,"AC_TEXTBLOCK_1" &lt;/FONT&gt;&lt;/I&gt;
!!!Sample PARAGRAPH syntax (End)&lt;/PRE&gt;
&lt;BR /&gt;Is it possible to build a list of commonly used paragraphs in a separate tab delimited .TXT file, and have the GDL object retrieve the relevant paragraphs just by typing their reference. I have found an example where GDL can import the following notes from a text file:&lt;BR /&gt;&lt;BR /&gt;SHEETS.TXT File Contents:
&lt;PRE&gt;&lt;FONT color="#0080FF"&gt;A01 Ground Floor 1:50
A02 First Floor 1:50
A03 Roofs 1:50
A04 Section A 1:20
A05 Section B 1:20&lt;/FONT&gt;&lt;/PRE&gt;
&lt;BR /&gt;GDL Script to extract a specific line from the SHEETS.TXT file:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;!!!Sample DATA EXTRACT syntax (Start):
&lt;I&gt;&lt;FONT color="#0080FF"&gt;!********* RECORD SEARCH (DATA ADD-ON)
ch=OPEN("DATA",”SHEETS.TXT”,"MODE=RO, DIALOG")
searchfield="A03"
nr=INPUT(ch,searchfield,1,
sheetname, sheetscale)
text2 0,0,searchfield
text2 1,0,sheetname
text2 2,0,sheetscale
CLOSE ch&lt;/FONT&gt;&lt;/I&gt;
!!!Sample DATA EXTRACT syntax (Endt):&lt;/PRE&gt;
&lt;BR /&gt;Result:&lt;BR /&gt;A03 Roofs 1:50&lt;BR /&gt;&lt;BR /&gt;Is it possible to write a piece of code inside the PARAGRAPH "____" syntax that can be used to link the code to a specific line in a TXT file for instance? Perhaps the ID# could be used and the same ID# number in the start of the TXT file to tell the code which text to extract?&lt;BR /&gt;&lt;BR /&gt;Ideally my goal is to have a simple TXT file (or excel file which I can export to TXT) and then just by entering a number, the GDL Paragraph Object can enter the relevant text from the TXT file. This would be a huge benefit to me and so appreciated if anyone has a way to do this.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance,&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 06:56:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Question-Paragraph-Linking/m-p/288615#M3507</guid>
      <dc:creator>GDL Enthusiast</dc:creator>
      <dc:date>2021-09-14T06:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: GDL Question - Paragraph Linking</title>
      <link>https://community.graphisoft.com/t5/GDL/GDL-Question-Paragraph-Linking/m-p/288616#M3508</link>
      <description>I don't see any problems doing that. You just need to set variables for your paragraph - like paragraphText01, paragraphText02... paragraphTextn&lt;BR /&gt;
You also can have variables for break: break01, break02, break03...&lt;BR /&gt;
So your paragraph text will look like:&lt;BR /&gt;
paragraphText01&lt;BR /&gt;
break01&lt;BR /&gt;
paragraphText02&lt;BR /&gt;
break02&lt;BR /&gt;
etc&lt;BR /&gt;
&lt;BR /&gt;
Before actual script you need to define will your variables be equal nothing ("") or need string.&lt;BR /&gt;
Breaks can be checked - for example if paragraphText01 doesn't equal "" and paragraphText02 doesn't equal "" then break01 equals "/n"</description>
      <pubDate>Thu, 29 Jul 2021 06:09:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/GDL/GDL-Question-Paragraph-Linking/m-p/288616#M3508</guid>
      <dc:creator>Podolsky</dc:creator>
      <dc:date>2021-07-29T06:09:38Z</dc:date>
    </item>
  </channel>
</rss>

