<?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: Gdl and read file in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117248#M23022</link>
    <description>Is there a simple function for returning to the beginning of coordinate system?</description>
    <pubDate>Mon, 19 Oct 2009 06:17:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-10-19T06:17:13Z</dc:date>
    <item>
      <title>Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117243#M23017</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Here TXT file filling:&lt;BR /&gt;
&lt;BR /&gt;
K30.00K62.00K5757.13&lt;BR /&gt;
K130.00K267.00K5493.25&lt;BR /&gt;
K230.00K472.00K5229.36&lt;BR /&gt;
K454.00K932.00K4638.25&lt;BR /&gt;
K554.00K1137.00K4374.36&lt;BR /&gt;
K654.00K1341.00K4111.27&lt;BR /&gt;
&lt;BR /&gt;
And my script:&lt;BR /&gt;
&lt;BR /&gt;
!--&amp;gt; file names added&lt;BR /&gt;
f1= "ARMDATA.txt" &lt;BR /&gt;
&lt;BR /&gt;
!--&amp;gt; LIBRARY keyword added &lt;BR /&gt;
ch1 = open ("TEXT", f1, "mode = ro,LIBRARY" ) &lt;BR /&gt;
&lt;BR /&gt;
!--&amp;gt; script continues as before &lt;BR /&gt;
&lt;BR /&gt;
1: &lt;BR /&gt;
n = input (ch1, "K", 1, var1,var2,var3) &lt;BR /&gt;
if n &amp;lt;&amp;gt; -1 then &lt;BR /&gt;
&lt;BR /&gt;
ADDX var1/1000&lt;BR /&gt;
ADDY var2/1000&lt;BR /&gt;
ROTX 90&lt;BR /&gt;
CYLIND 12,var3/1000&lt;BR /&gt;
ROTX 270&lt;BR /&gt;
IF VAR1/1000&amp;lt;0 then ADDX VAR1/1000&lt;BR /&gt;
IF VAR1/1000&amp;gt;0 then ADDX -VAR1/1000&lt;BR /&gt;
IF VAR2/1000&amp;lt;0 then ADDY VAR2/1000&lt;BR /&gt;
IF VAR2/1000&amp;gt;0 then ADDY -VAR2/1000&lt;BR /&gt;
IF VAR3/1000&amp;lt;0 then ADDX VAR3/1000&lt;BR /&gt;
IF VAR3/1000&amp;gt;0 then ADDX -VAR3/1000&lt;BR /&gt;
&lt;BR /&gt;
goto 1 &lt;BR /&gt;
else &lt;BR /&gt;
goto 2 &lt;BR /&gt;
endif &lt;BR /&gt;
2: &lt;BR /&gt;
close ch1 &lt;BR /&gt;
&lt;BR /&gt;
But he does not want to build my figure.&lt;BR /&gt;
&lt;BR /&gt;
 &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_sad.gif" style="display : inline;" /&gt;&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Oct 2009 12:10:40 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117243#M23017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-13T12:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117244#M23018</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Your script has two fundamental problems.&lt;BR /&gt;
- The 'K' separator should be passed to the 'OPEN' command.&lt;BR /&gt;
- The 'INPUT' command need a proper row number to read.&lt;BR /&gt;
&lt;BR /&gt;
I created the following equivalent script but seeing the result I doubt that this is what you aim for.&lt;BR /&gt;

&lt;PRE&gt;!--&amp;gt; file names added 
f1= "ARMDATA.txt" 

ch1 = open ("TEXT", f1, "separator = 'K'; mode = ro,LIBRARY" ) 

n = input (ch1, 1, 1, var1,var2,var3)
i = 1

while n &amp;gt; 2 do
	ADDX var1/1000 
	ADDY var2/1000 
	ROTX 90 
	CYLIND 12, var3/1000
	ROTX 270
	add -abs(var1/1000)-abs(var3/1000), -abs(var2/1000), 0
	i = i+1
	n = input (ch1, i, 1, var1,var2,var3)
endwhile

close ch1 &lt;/PRE&gt;

HTH, &lt;BR /&gt;
Zsolt</description>
      <pubDate>Wed, 14 Oct 2009 12:44:44 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117244#M23018</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-10-14T12:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117245#M23019</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Similar problem.&lt;BR /&gt;
&lt;BR /&gt;
Text file read write&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
Is there any way (but using random no. generator) to get  the "open" dialog box (always) when some switch is trigered?&lt;BR /&gt;
&lt;BR /&gt;
And is there  any way to create the file on saving via dialog box? (in database addon - it is possible but not in text addon) - the workaround is to create the new text file inside the save dialog (Win) - I do not know reliable workaround for Mac.&lt;BR /&gt;
&lt;BR /&gt;
Best Regards,&lt;BR /&gt;
Piotr</description>
      <pubDate>Wed, 14 Oct 2009 14:39:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117245#M23019</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2009-10-14T14:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117246#M23020</link>
      <description>&lt;BLOCKQUOTE&gt;ztaskai wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;
&lt;BR /&gt;
Your script has two fundamental problems.&lt;BR /&gt;
- The 'K' separator should be passed to the 'OPEN' command.&lt;BR /&gt;
- The 'INPUT' command need a proper row number to read.&lt;BR /&gt;
&lt;BR /&gt;
I created the following equivalent script but seeing the result I doubt that this is what you aim for.&lt;BR /&gt;

&lt;PRE&gt;!--&amp;gt; file names added 
f1= "ARMDATA.txt" 

ch1 = open ("TEXT", f1, "separator = 'K'; mode = ro,LIBRARY" ) 

n = input (ch1, 1, 1, var1,var2,var3)
i = 1

while n &amp;gt; 2 do
	ADDX var1/1000 
	ADDY var2/1000 
	ROTX 90 
	CYLIND 12, var3/1000
	ROTX 270
	add -abs(var1/1000)-abs(var3/1000), -abs(var2/1000), 0
	i = i+1
	n = input (ch1, i, 1, var1,var2,var3)
endwhile

close ch1 &lt;/PRE&gt;

HTH, &lt;BR /&gt;
Zsolt&lt;/BLOCKQUOTE&gt;

That not so works well, as I thought.&lt;BR /&gt;
I did a verification script, but a condition malfunctions....
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!--&amp;gt; file names added 
f1= "ARMDATA.txt" 

ch1 = open ("TEXT", f1, "separator = 'K'; mode = ro,LIBRARY" ) 

n = input (ch1, 1, 1, var1,var2,var3) 
 
 IF var1=30.00 THEN CYLIND 10,0.006
 IF var2=62.00 THEN CYLIND 10,0.006
 IF var3=5757.13 THEN CYLIND 10,0.006

close ch1 

&lt;/PRE&gt;

 &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt;</description>
      <pubDate>Thu, 15 Oct 2009 08:55:51 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117246#M23020</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-15T08:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117247#M23021</link>
      <description>&lt;BLOCKQUOTE&gt;Alexonus wrote:&lt;BR /&gt;
That not so works well, as I thought.&lt;BR /&gt;
I did a verification script, but a condition malfunctions....
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!--&amp;gt; file names added 
f1= "ARMDATA.txt" 

ch1 = open ("TEXT", f1, "separator = 'K'; mode = ro,LIBRARY" ) 

n = input (ch1, 1, 1, var1,var2,var3) 
 
 IF var1=30.00 THEN CYLIND 10,0.006
 IF var2=62.00 THEN CYLIND 10,0.006
 IF var3=5757.13 THEN CYLIND 10,0.006

close ch1 

&lt;/PRE&gt;

&lt;/BLOCKQUOTE&gt;

Well, since you defined K as a separator and you begin your data lines with a K, the first value read is an empty string which is converted to 0. &lt;BR /&gt;
&lt;BR /&gt;
You have 2 options: (1) drop the first K from the beginning of your lines in the data file, (2) read the starting 0s into a dummy variable like this: n = input (ch1, 1, 1, dummy,var1,var2,var3).&lt;BR /&gt;
&lt;BR /&gt;
I still don't think this is the end result you'd like to get you may have got closer to it.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Zsolt</description>
      <pubDate>Fri, 16 Oct 2009 10:33:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117247#M23021</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-10-16T10:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117248#M23022</link>
      <description>Is there a simple function for returning to the beginning of coordinate system?</description>
      <pubDate>Mon, 19 Oct 2009 06:17:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117248#M23022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-19T06:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117249#M23023</link>
      <description>Del top ?</description>
      <pubDate>Mon, 19 Oct 2009 07:18:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117249#M23023</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-19T07:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117250#M23024</link>
      <description>flat system of co-ordinates  of x=any number y=any number,  add x... y.... then needed  return in x=0 y=0 .Something simpler than "abs"</description>
      <pubDate>Mon, 19 Oct 2009 07:43:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117250#M23024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-19T07:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117251#M23025</link>
      <description>How to set the thickness of lines?&lt;BR /&gt;
&lt;BR /&gt;
LINE2 x1, y1, x2, y2</description>
      <pubDate>Tue, 20 Oct 2009 08:48:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117251#M23025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-20T08:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117252#M23026</link>
      <description>&lt;BLOCKQUOTE&gt;Alexonus wrote:&lt;BR /&gt;How to set the thickness of lines?&lt;BR /&gt;
LINE2 x1, y1, x2, y2&lt;/BLOCKQUOTE&gt;

Alexonus:&lt;BR /&gt;
&lt;BR /&gt;
Use the &lt;FONT color="blue"&gt;PEN&lt;/FONT&gt; statement, this will set the pen by number, the thickness will depend on the thickness of that pen number set in the Pen Set, see the GDL Reference Guide for more information.&lt;BR /&gt;
&lt;BR /&gt;
You should add a Signature to your Profile (click the Profile button near the top of this page) with your ArchiCAD version and operating system (see mine for an example) for more accurate help in this forum.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 20 Oct 2009 12:55:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117252#M23026</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2009-10-20T12:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117253#M23027</link>
      <description>How can I draw a solid line if I have only x1,y1,x2,y,2</description>
      <pubDate>Tue, 20 Oct 2009 13:42:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117253#M23027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-20T13:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117254#M23028</link>
      <description>Use the PEN command as suggested to set the color.&lt;BR /&gt;
Use the LINETYPE command to set the linetype.&lt;BR /&gt;
Then use the LINE2 command.</description>
      <pubDate>Tue, 20 Oct 2009 14:56:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117254#M23028</guid>
      <dc:creator>Laszlo Nagy</dc:creator>
      <dc:date>2009-10-20T14:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117255#M23029</link>
      <description>I would like to build a 3D cylinder having  co-ordinates of his beginning and end co-ordinate.</description>
      <pubDate>Wed, 21 Oct 2009 12:54:17 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117255#M23029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-21T12:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117256#M23030</link>
      <description>&lt;BLOCKQUOTE&gt;Alexonus wrote:&lt;BR /&gt;I would like to build a 3D cylinder having  co-ordinates of his beginning and end co-ordinate.&lt;/BLOCKQUOTE&gt;

There is no explicit command for it in GDL. You have to do some coordinate geometry then:) You have to compute the actual length and the rotation angle of the cylinder based on the difference of coordinates. A nice task for returning to school memories:)</description>
      <pubDate>Wed, 21 Oct 2009 13:06:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117256#M23030</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-10-21T13:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117257#M23031</link>
      <description>&lt;BLOCKQUOTE&gt;ztaskai wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Alexonus wrote:&lt;BR /&gt;I would like to build a 3D cylinder having  co-ordinates of his beginning and end co-ordinate.&lt;/BLOCKQUOTE&gt;

There is no explicit command for it in GDL. You have to do some coordinate geometry then:) You have to compute the actual length and the rotation angle of the cylinder based on the difference of coordinates. A nice task for returning to school memories:)&lt;/BLOCKQUOTE&gt;

I thought there were predefined function for that ^_^</description>
      <pubDate>Sat, 24 Oct 2009 13:44:53 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117257#M23031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-24T13:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117258#M23032</link>
      <description>Ruled?</description>
      <pubDate>Sat, 24 Oct 2009 21:39:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117258#M23032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-24T21:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117259#M23033</link>
      <description>&lt;BLOCKQUOTE&gt;Juha wrote:&lt;BR /&gt;Ruled?&lt;/BLOCKQUOTE&gt;

Good point. I didn't explicitly check it but I think &lt;B&gt;ruled&lt;/B&gt; doesn't support curved edges. &lt;B&gt;tube&lt;/B&gt; could work though. We usually don't use these commands whenever not absolutely necessary because they are less effective than the simple body generators.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
Zsolt</description>
      <pubDate>Mon, 26 Oct 2009 14:25:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117259#M23033</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-10-26T14:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117260#M23034</link>
      <description>&lt;BLOCKQUOTE&gt;ztaskai wrote:&lt;BR /&gt;&lt;B&gt;tube&lt;/B&gt; could work though.&lt;/BLOCKQUOTE&gt;

The problem with &lt;FONT color="blue"&gt;TUBE&lt;/FONT&gt; is that you need a minimum of 4 points for the path (the first and last points are not part of the model itself, but determine the angle of the start and end planes), so this is not as simple a solution as Alexonus is looking for.&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 27 Oct 2009 13:35:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117260#M23034</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2009-10-27T13:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117261#M23035</link>
      <description>&lt;BLOCKQUOTE&gt;David wrote:&lt;BR /&gt;The problem with &lt;FONT color="blue"&gt;TUBE&lt;/FONT&gt; is that you need a minimum of 4 points for the path (the first and last points are not part of the model itself, but determine the angle of the start and end planes), so this is not as simple a solution as Alexonus is looking for.&lt;/BLOCKQUOTE&gt;

Exactly. Another reason why we don't use tube much &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Zsolt</description>
      <pubDate>Tue, 27 Oct 2009 14:25:31 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117261#M23035</guid>
      <dc:creator>ztaskai</dc:creator>
      <dc:date>2009-10-27T14:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Gdl and read file</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117262#M23036</link>
      <description>Ok. I make my gdl with CYLINER, but i not  undarstand where problem. Not work conditions sum=6&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;!--&amp;gt; file names added 
f1= "ARMDATA.txt" 

ch1 = open ("TEXT", f1, "separator = 'K'; mode = ro,LIBRARY" ) 

n = input (ch1, 1, 1,dummy, var1,var2,var3,var4,var5,var6) 
i = 1 

while n &amp;gt; 2 do 
sum=var1+var2+var3+var4+var5+var6
IF sum=6 THEN 

i = i+1  
n = input (ch1, i, 1, dummy,var7)
FOR I=1 TO var7
i = i+1  
n = input (ch1, i, 1, dummy,var8,var9)
ADDX var9/1000
ROTZ -90 
CYLIND var8,0.006
ADDX -var9/1000
ROTZ 90 
NEXT I

ENDIF

IF sum&amp;lt;&amp;gt;6 THEN   
   ADDX var1/1000 
   ADDY var2/1000 
  ROTZ var4  
  IF var4=0 and var2&amp;lt;&amp;gt;var6 THEN ROTZ 90
  ROTY 90
   
CYLIND var3/1000,0.006 
  
 ROTY 270  
 IF var4=0 and var2&amp;lt;&amp;gt;var6 THEN ROTZ -90
ROTZ -var4 

LINE2 var1/1000,var2/1000,var5/1000,var6/1000


IF var1&amp;gt;0 THEN ADDX -var1/1000
IF var1&amp;lt;0 THEN ADDX -var1/1000
IF var2&amp;gt;0 THEN ADDY -var2/1000
IF var2&amp;lt;0 THEN ADDY -var2/1000
ENDIF
   i = i+1 
   n = input (ch1, i, 1, dummy,var1,var2,var3,var4,var5,var6) 

endwhile 

close ch1 
&lt;/PRE&gt;

and my file:&lt;BR /&gt;
&lt;BR /&gt;
K62.00K-30.00K5757.13K0.00K5819.13K-30.00&lt;BR /&gt;
K267.00K-130.00K5493.25K0.00K5760.25K-130.00&lt;BR /&gt;
K472.00K-230.00K5229.36K0.00K5701.36K-230.00&lt;BR /&gt;
K932.00K-454.00K4638.25K0.00K5570.25K-454.00&lt;BR /&gt;
K1137.00K-554.00K4374.36K0.00K5511.36K-554.00&lt;BR /&gt;
K1341.00K-654.00K4111.27K0.00K5452.27K-654.00&lt;BR /&gt;
K1K1K1K1K1K1&lt;BR /&gt;
K7&lt;BR /&gt;
K0.68K901.20&lt;BR /&gt;
K0.68K1401.20&lt;BR /&gt;
K0.68K1901.20&lt;BR /&gt;
K0.68K2933.20&lt;BR /&gt;
K0.68K3433.20&lt;BR /&gt;
K0.68K3933.20&lt;BR /&gt;
K0.68K4433.20&lt;BR /&gt;
&lt;BR /&gt;
Please help me ! I want make this GDL file  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_twisted.gif" style="display : inline;" /&gt;</description>
      <pubDate>Thu, 29 Oct 2009 20:06:41 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Gdl-and-read-file/m-p/117262#M23036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-29T20:06:41Z</dc:date>
    </item>
  </channel>
</rss>

