GearHeads Corner
July 23, 2019, 09:30:28 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1] 2 3 ... 10
 1 
 on: Today at 07:21:44 PM 
Started by gburk - Last post by ArtF
Gary:

 Im sure a limit may exist, but I dont think in this case, unless one line gets too
large it shouldnt run into memory problems.

  Your routine will skip the first line though... Id suggest the following change.
I might add the the null check may not be necessary as the print routine shouldn't
fail on a print(null) and it is possible for readline to return null without being at
the end of a file.

line = 0;
next_line[line] = myfile.Re adLine();
 while (next_line[line] != EOF)
  {
     print(next_line[line]);
     line = line + 1;
     next_line[line] = myfile.Re adLine();
     if (next_line[line] == null)
     {
       print("Null line found before end of file"); //can be ignored in many cases..
       exit();
     }
   };

Art
]
 

 2 
 on: Today at 05:18:28 PM 
Started by gburk - Last post by gburk
Art

One problem on large files it seems to read the EOF before its read the whole file at least it exits the loop and stops printing

small files its good, don't see any errors popping up is there a buffer limit to a table ?..

Gary

 3 
 on: Today at 04:14:07 PM 
Started by gburk - Last post by ArtF
Gary:

 Looks as efficient as any script ID write. Good job.

Art

 4 
 on: Today at 03:22:11 PM 
Started by gburk - Last post by gburk
Art

Is this a good way to read a file or do you suggest a different approach ?

global next_line = table();

myfile = system.Fi le();
myfile.Op en("*");
line = 0;
next_line[line] = myfile.Re adLine();
 while (next_line[line] != EOF)
   {
     line = line + 1;
     next_line[line] = myfile.Re adLine();
     if (next_line[line] == null)
     {
      exit();
     }
     print(next_line[line]);
   };
 
Gary

 5 
 on: July 22, 2019, 07:32:08 PM 
Started by kit - Last post by kit
I'd love to know what you put in your morning tea Kirk  Wink

When I paid a visit to the UK back in February my only 'must see' location during a weekend in London was the Heath Robinson museum, which didn't exist last time I was north of the equator. Best known for his wonderful invention s he was also a very accomplis hed artist and illustrat or of many more serious books.

My current CNC router design is much less "Heath Robinson" that the earlier wooden framed version and is all the better for it! With luck my finished clock will reflect that. I should have some time to make further progress in the coming week.

kit

 6 
 on: July 22, 2019, 05:46:41 PM 
Started by John T - Last post by John T
If it will simulate then boxing will give you the shafts

 7 
 on: July 22, 2019, 11:21:50 AM 
Started by John T - Last post by Mooselake
I can simulate a 2x2 array with 4 sided gears, 3 sided was a bust.  I need to go back and review the doc videos to relearn how to get shafts exactly where I want them then give it a try with some 1/8" plywood that's sitting here going "Cut me, Cut me"

Kirk

 8 
 on: July 20, 2019, 09:03:15 PM 
Started by John T - Last post by ArtF
Thanks John

 Ill note it so if Im in there again I can see about fixing it.

Art

 9 
 on: July 20, 2019, 06:17:07 PM 
Started by John T - Last post by John T
Hi Art
When I’m making “fidgets” I use the boxing for the axels (pivots) and I only need a front or a back, but if I select just a front no holes are shown. In order to get the holes to show in either boxing or the three axis screen, I have to ask for both a front and a back in the boxing function.  Once they are shown I can delete one and the holes stay.

It’s an easy work around but thought you might like to know.

John

 10 
 on: July 20, 2019, 06:09:42 PM 
Started by John T - Last post by John T
Yes the block is 4” by 5.25”.

I haven’t tried the eccentric as a block, so that is a challenge!!

Pages: [1] 2 3 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!