From ahaas at airmail.net Sun Jul 3 17:42:51 2005 From: ahaas at airmail.net (Art Haas) Date: Sun, 3 Jul 2005 10:42:51 -0500 Subject: [PythonCAD] test Message-ID: <20050703154251.GD21080@artsapartment.org> Test message to see if e-mail is working. Move along, nothing to see ... -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 From ahaas at airmail.net Wed Jul 6 21:11:55 2005 From: ahaas at airmail.net (Art Haas) Date: Wed, 6 Jul 2005 14:11:55 -0500 Subject: [PythonCAD] Landscape printing in PythonCAD Message-ID: <20050706191155.GC2204@artsapartment.org> Hi. Ed Richley had mailed me about printing difficulties he encountered when trying to print in Landscape mode. He did some debugging and found that if he slightly edited the generated PostScript file things would print correctly. Based on the info/patch he sent me, I've changed the 'printing.py' file to apply his fix as well as a number of other small changes that should, hopefully, resolve the issues he was seeing. The various changes move a couple of PostScript commands out of what is called the prologue section of the file and into the the script part. One fix, incidentally, was to fix the long-standing typo which terminates the prologue: "%%EndProlog". Previously the code would say "%%EndPrologue", which is the correct spelling but for some reason the Adobe people preferred to drop the 'ue' and use the spelling of the computer language. Maybe the original PostScript authors hated Prolog and this was their revenge. Had anyone else had difficulty printing in Landscape mode? If so, could you post a comment to the list. I can send a small patch that will alter the 'printing.py' file that should, hopefully, fix things. Or you can wait until the next release when the fix will be included. Art -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 From ahaas at airmail.net Fri Jul 8 15:00:04 2005 From: ahaas at airmail.net (Art Haas) Date: Fri, 8 Jul 2005 08:00:04 -0500 Subject: [PythonCAD] Away for a bit Message-ID: <20050708130004.GM2204@artsapartment.org> Hi. I'll be away from my computer for the next week and some, so there will most likely be nothing new showing up at the repository. I will be able to check my e-mail though. Art -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 From ahaas at airmail.net Tue Jul 19 23:04:27 2005 From: ahaas at airmail.net (Art Haas) Date: Tue, 19 Jul 2005 16:04:27 -0500 Subject: [PythonCAD] Latest batch of updates now available Message-ID: <20050719210427.GC20845@artsapartment.org> Hi. I've sent a number of changes up to the repository, and included in these changes are some adjustments to the file saving and loading code. The various changes address a problem found when loading a file with some text and adding new text to the drawing. I've fixed that problem, but I think things need to be more robust, so I'll be tweaking this code over the next few days/weeks. If anyone has problems saving or loading a file please let me know. Also, a number of bugs were fixed, including a little gem that made the 'Save As' menu choice call the incorrect handler. Here's the patch that fixed that goof for those wanting just this fix: Art Index: PythonCAD/Interface/Gtk/gtkmenus.py =================================================================== --- PythonCAD/Interface/Gtk/gtkmenus.py (revision 1937) +++ PythonCAD/Interface/Gtk/gtkmenus.py (working copy) @@ -939,7 +939,7 @@ _menu.append(_item) # _act = gtk.Action('SaveAs', 'Save As ...', None, None) - _act.connect('activate', file_save_cb, gtkimage) + _act.connect('activate', file_save_as_cb, gtkimage) actiongroup.add_action(_act) _menu.append(_act.create_menu_item()) # -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 From ahaas at airmail.net Sun Jul 24 00:54:09 2005 From: ahaas at airmail.net (Art Haas) Date: Sat, 23 Jul 2005 17:54:09 -0500 Subject: [PythonCAD] Offline again for a short while Message-ID: <20050723225409.GD2165@artsapartment.org> Hi. I'll be offline mostly over the next week, so there will not be anything new appearing in the repo. The recent changes that have filtered up have helped with the file saving problem reported last month, but still more changes are needed to make things more robust. I hope to make and test the necessary changes over the next few weeks. As the last release was in the end of May I think that a release must be made during August. Art -- Man once surrendering his reason, has no remaining guard against absurdities the most monstrous, and like a ship without rudder, is the sport of every wind. -Thomas Jefferson to James Smith, 1822 From davec at mail.uklinux.net Sun Jul 24 11:20:27 2005 From: davec at mail.uklinux.net (davec@mail.uklinux.net) Date: Sun, 24 Jul 2005 05:20:27 -0400 Subject: [PythonCAD] Converting from DWG Message-ID: <380-22005702492027562@M2W110.mail2web.com> Hi, PythonCAD includes python files for handling dwg files. Specifically I'm refering to dwgbase.py, dwgutils.py, dwg15.py (I'm typing this at an Internet Cafe, so it's probably not exactly what the files are called). Can anyone offer a short tutorial on how to use these to display an autocad file? Can one use these to write an AutoCAD file? Many thanks, Dave Coventry -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From davec at mail.uklinux.net Sun Jul 24 11:21:06 2005 From: davec at mail.uklinux.net (davec@mail.uklinux.net) Date: Sun, 24 Jul 2005 05:21:06 -0400 Subject: [PythonCAD] Converting from DWG Message-ID: <380-2200570249216890@M2W118.mail2web.com> Hi, PythonCAD includes python files for handling dwg files. Specifically I'm refering to dwgbase.py, dwgutils.py, dwg15.py (I'm typing this at an Internet Cafe, so it's probably not exactly what the files are called). Can anyone offer a short tutorial on how to use these to display an autocad file? Can one use these to write an AutoCAD file? Many thanks, Dave Coventry -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From ewilhelm at sbcglobal.net Sun Jul 24 18:00:27 2005 From: ewilhelm at sbcglobal.net (Eric Wilhelm) Date: Sun, 24 Jul 2005 09:00:27 -0700 Subject: [PythonCAD] Converting from DWG In-Reply-To: <380-2200570249216890@M2W118.mail2web.com> References: <380-2200570249216890@M2W118.mail2web.com> Message-ID: <200507240900.27450.ewilhelm@sbcglobal.net> # from davec at mail.uklinux.net # on Sunday 24 July 2005 02:21 am: >PythonCAD includes python files for handling dwg files. s/handling/parsing/ The dwg code is currently a basic reader implementation of the spec as published by the opendesign consortium (can you get a spec from AutoDesk? :-) There are still some files on which the readers crash. It needs work both in the stability/correctness and in getting hooked to something usable (like a display.) >Can anyone offer a short tutorial on how to use these to display an > autocad file? Once the uber-converter has a dwg2rzp connector, the process would just be 'dwg2rzp filename.dwg | rzp2pycad filename.xml.gz' (but this will probably be encapsulated within an 'import' menu entry in pythoncad.) The dxf2rzp connector is rather functional right now, though I've had to stop working on it to try to pay the bills. Chris wrote most of rzp2pycad, but I think it is in a fairly complete state too. Check the uber-converter page for more info: http://scratchcomputing.com/projects/uber-converter/ So, as "short tutorials" go, the easiest, cheapest option would be to wait for it. There is a faster easy way that involves writing a check (if you have a funded project that needs it on time.) If you have the skill and time and want to write a lot of code, I would be happy to coordinate that with you. While I cannot speak for Art, I think he would also be happy to help with either of the latter two options. > Can one use these to write an AutoCAD file? There's a lot to be done before we can output DWG. DXF output is probably going to happen first, since it doesn't require chasing reverse-engineered data. My CAD::Drawing Perl modules also read and write DWG, but because the current backend relies on the opendwg library, you'll have to jump through some (mail-in) hoops to get that no-cost (non-free) blackbox library so I've stopped development of the opendwg backend. --Eric -- Eric Wilhelm Scratch Computing 3320 SW 122nd Ave. Beaverton, OR 97005 Office: (503) 643-1684 Mobile: (503) 880-4750 http://scratchcomputing.com