Log in

View Full Version : Google Docs Spreadsheet for *.sbp file collaboration?



scottcox
01-04-2008, 11:26 AM
As per Bill Young's suggestion, I checked out the Google Docs Spreadsheet to evaluate whether it can be used for collaborating on and modifying a shopbot cut file.

After a little digging, I found the following....
---
Each spreadsheet can be up to 10,000 rows, or up to 256 columns, or up to 100,000 cells, or up to 40 sheets -- whichever limit is reached first.

Each user has a limit of 1000 spreadsheets and the limit on spreadsheets open at one time is 11.

You can import spreadsheets up to approximately 1 Mb in xls, csv, or ods, txt, tsv, tsb format.
---

Well, the 10K row limit leaves this open for smaller cut files, but don't try 3D. ;-)

Are there any Google Docs users out there who have used the spreadsheet to work on shopbot files?

-Scott

oddcoach
01-05-2008, 10:04 AM
Have you considered open office? It is an opensource project has a spreadsheet that rivals excel and its free.
http://www.openoffice.org/
it also has a wordprocesser database etc
John

scottcox
01-05-2008, 05:09 PM
Thanks for the reply John.

I do have Open Office on one computer and Excel and Manifold on my design computer.

Manifold (www.manifold.net (http://www.manifold.net)) is a very cool GIS program that can be used for vector manipulation OR database manipulation. I use this frequently for shopbot files.

My own interest in the Google Docs was more in the ability to collaborate on a file. So while I see that you can indeed collaborate on simple files, it's not the program to use for "heavy" work.

bill.young
01-05-2008, 05:35 PM
hey Scott,

That was my thought on Google Docs too...that it's something that anyone can use without having to install anything. I use it all the time for collaborating on Docs and it's really pretty amazing for a free application.

Bill,

p.s. Do you have any experience with spreadsheet formats? I've added report-writing to the ShopBot Odometer in ShopBot Labs and am using a csv file for spreadsheets. The csv format doesn't let you specify any formatting, though, so I'm looking for other options. Any thoughts?

Brady Watson
01-05-2008, 05:54 PM
You can import a CSV into OO Base and then apply whatever filters etc you want on it. Granted it isn't a spreadsheet, but the advantage of being able to handle larger datasets far outweighs the little work arounds you'd need to do to manipulate the data. It's pretty easy to do a make table query and filter with basic SQL commands & then output whatever way you want. I've used MS Access for years to manipulate SBPs, so I'll stick to that for now. The nice thing about Base is that you can just load it on a thumbdrive and take it anywhere & use it on any computer without any installation.

-B

scottcox
01-05-2008, 09:16 PM
Sorry Bill. I use them only for calculations and never tried to write formatting into them (if I even understand that right).

Thinking about this lead me to do a quick search for an old program I once knew, Crystal Reports. I see it's still alive at www.businessobjects.com (http://www.businessobjects.com)

The Wikipedia reports that MS Visual Studio has an OEM version of Crystal Reports bundled in. Can that help?

Brady Watson
01-06-2008, 12:41 PM
You don't need Crystal...it just takes data and arranges it to make it all pretty for reports etc. All the functionality you need is to be able to store things in a table (like each comma delimited row of an SBP) and query that table (ask the right questions to get the data you need) - This is something that you can't do with a spreadsheet, especially if it is more than 64,000 lines or so. This is why I like using a a database tool like MSAccess or similar. You can still create the pretty reports just like Crystal, but they serve no practical purpose in the land of SBP.

By simply changing the extension of an SBP to a CSV or TXT you can import directly into a table. Then using a 'Make Table' query in design view, drag the columns you want, where you want them and add any kind of filtering you need. It will make a new table, keeping you original data intact. Then you can export it as a txt or csv & just rename it with an sbp extension. It makes it easy to swap columns, add new ones or change vast amounts of SBP code when it is impractical to do it by hand.

It's been a while since I've left the programming life behind (can't believe how much I have forgotten) - but I thought there was a way to declare a variable type as a 'database' that could be queried like any other within VB or .NET. Like I said it's been a while - but it's worth looking into for those that know how to program in VB.

-B

eric_schumacher
01-06-2008, 01:16 PM
quote:Do you have any experience with spreadsheet formats? I've added report-writing to the ShopBot Odometer in ShopBot Labs and am using a csv file for spreadsheets. The csv format doesn't let you specify any formatting, though, so I'm looking for other options. Any thoughts? - Bill Young


Bill, If you can be a little more specific I think I might be able to give some help. I do a lot of programming on windows and could offer you some solutions either quick and dirty or slick and fancy.

When you say "formatting" what do you mean exactly? How are you trying to present data?

bill.young
01-06-2008, 01:23 PM
Hey Brady,

I agree that a database is much more powerful, but for things like looking at the output from the system log, a spreadsheet seems easier to use to me. I can open a csv file directly in Google Docs spreadsheet or Open Office Calc and do basic tasks like re-sorting or adding up columns to figure out job times, but for the life of me I can't get the info into Open Office Base no matter what I do.

Of course it may have something to do with me being clueless about databases...the wikis use MySQL to store everything, and every time I have to work with them I'm scared I'm going to mess something up!

Bill

bill.young
01-06-2008, 01:31 PM
Hey Eric,

I can output the data just fine and it shows up in the right columns, but when the csv file opens, the columns in the Spreadsheet are always a fixed width so there may not be enough room for things like the filename or column headers. All the ShopBotter has to do is make the columns wider by dragging the dividers but it bothers me that it looks funky when it imports...I'd like to have them autosize to fit the data somehow or be able to specify the column widths in the file.

Maybe csv isn't the right option?

Bill

eric_schumacher
01-06-2008, 01:50 PM
Bill, I wanted to take a look at the software, but since I don't have the shopbot software installed on my workstation or have a log it's not running for me. Is it possible for you to provide a log file and the path your programming is wanting so I can check out your program?

Also, what are you writing this program in? Is it VB6?

Brady Watson
01-06-2008, 01:52 PM
Bill,
OO Base is very convoluted in how it imports external data. Open up the OO Help and go to the 'Index' tab and type in: "importing;tables in text format" - This will walk you thru the steps of importing a text file. It seems that you 1st must pull it into Calc, then from Calc to Base. It says that it will only import as Read Only, so that's good - you won't have to worry about messing up the data.

OO Base is a bit convoluted, and not the easiest interface to work in if you haven't worked with databases much. The easiest way to get data into Base is to pull in your SBP/CSV into Calc, then select all & copy. Then goto Base and paste. Now you have a table that you can query.

-B

richards
01-07-2008, 10:43 AM
Brady,
It's really easier than that. In Open Office Calc (which is the spread sheet program), click the "Save As" option in the Files Menu tab and then select CSV as the type of file. You'll be given the standard option of either using a comma to delimit each field with double-quotes for string data or of choosing delimiters of your own.

I don't use OO base, but I do use PostgeSQL and MySQL regularly to import and export data to/from spreadsheets and SQL databases. The CSV file format is the format that is most commonly used to transfer data between different programs.

(It's also the file format that Bruce Clark and I use to store data in our FreeDoors program. Believe me, if CSV were complex, I wouldn't be smart enough to use it.)

Brady Watson
01-07-2008, 10:54 AM
Mike,
Why Base doesn't just import a txt or csv is beyond me...any SQL program worth it's weight should import a flat file without issue...but that could be asking too much from a free program.

You can take any SBP and just rename it's SBP extension to CSV and it's instantly a CSV that you can pull into any spreadsheet or (hopefully) any database program. No magic there.

So after you have converted your SBP to CSV by simply changing the extension on it, in order to get it into Base, you need to open it in Calc 1st, then select all, copy & paste into Base. If it's larger than 64,000 lines, then you are outta luck...which defeats the whole purpose of using Base to begin with - to be able to work with larger record sets than 64,000 lines (3D SBPs or very large v-carving files)

-B

richards
01-08-2008, 08:08 AM
Brady,
As usual, I assumed that the problem was file conversion, even though you clearly wrote that it was OO Base related. Sorry.

I just spent a few minutes looking at OO Base. Because it is similar to Microsoft Access, it's a product that I've never used.

When I checked the size limitations for OO Calc, they're the same as Excel (and the same as OO Base): 65,536 rows of data.

SQL databases usually have no limit (except the amount of disk space available). PostgreSQL reports databases larger than 32TB. Of course, using an SQL database would require a front-end program to put data in and get data out. (There seems to always be a catch for everything.)

eric_schumacher
01-08-2008, 09:00 AM
OO Base can interaface to a few db's. If you like the interface you can use something like SQlite as your db. This would make your files *very* cross platform and portable. You can also use PostgreSQL and MySQL if you prefer. There are a number of articles on the net for setting it up.

You can also create a very simple windows app to us ADO to run SQL against csv files. If you put a grid control on a form and use data binding it will look very similar to a spreadsheet.

It just depends on how much time you want to spend and what result you are looking for. If you need to use free interfaces then base might be good. If you want fee and you can spend a little time you can cook something up in .NET or VB6 to solve the issue and keep using csv...