[PythonCAD] dimensions don't show up?

2006-06-02 Thread Russ Nelson
Hi. Why is the numeric dimension label not showing up? I start at a 'New' document, draw two points, and put a dimension between them, and I see no number. -- --my blog is athttp://blog.russnelson.com | When immigration is Crynwr sells support for free software | PGPok | outlawed, only c

Re: [PythonCAD] dimensions don't show up?

2006-06-02 Thread Russ Nelson
Art Haas writes: > 'Modify' -> 'Change' -> 'Dimension' -> 'Primary Dim String' -> 'Size' Ah, yes, that fixes it. But I just discovered a few bugs. First one is that File->New is not undoable. Why shouldn't it be? That's a better paradigm than to ask "Are you sure?" Because nearly always

Re: [PythonCAD] dimensions don't show up?

2006-06-03 Thread Russ Nelson
Art Haas writes: > Doing a 'File->New' from the menu opens up a new window, It does; I didn't notice that until after I sent the email. > Handling undo operations in the middle of creating some entity will > require some thought as to how, or even if, it can be done. Art Haas writes: > Here's

[PythonCAD] rotating objects?

2006-06-05 Thread Russ Nelson
Is there a way to rotate objects? Is there a way to set the dimensions of objects? I need to draw a bunch of fixed-size holes for switches, but they need to be at varying rotations. -- --my blog is athttp://blog.russnelson.com | When immigration is Crynwr sells support for free software |

Re: [PythonCAD] rotating objects?

2006-06-05 Thread Russ Nelson
Art Haas writes: > On Mon, Jun 05, 2006 at 11:55:03AM -0400, Russ Nelson wrote: > > Is there a way to rotate objects? > > Is there a way to set the dimensions of objects? > > > > I need to draw a bunch of fixed-size holes for switches, but they need >

Re: [PythonCAD] rotating objects?

2006-06-05 Thread Russ Nelson
Art Haas writes: > to place the parallel line. Use a similar procedure for creating > horizontal lines 13.55mm across. You then go to 'Draw'->'Segment' and > draw segments on the box defined by the construction lines. Hrm. Okay, I can make four angled construction lines, however there are only

[PythonCAD] a simplifying patch?

2006-06-05 Thread Russ Nelson
Is it appropriate to send patches to the list? This one's fairly short, so I'll take the chance. This code is much simpler to read and understand. diff -ur orig/PythonCAD/Interface/Gtk/gtkmenus.py ./PythonCAD/Interface/Gtk/gtkmenus.py --- orig/PythonCAD/Interface/Gtk/gtkmenus.py2006-05-11 1

[PythonCAD] in the interest of not multiplying entities

2006-06-05 Thread Russ Nelson
I'm noticing that code in gtkmenus.py which looks like this: # def select_all_circles_cb(menuitem, gtkimage): _active_layer = gtkimage.getActiveLayer() for _circle in _active_layer.getLayerEntities("circle"): gtkimage.sele

[PythonCAD] _width, _height?

2006-06-05 Thread Russ Nelson
In Interface/Gtk/gtkedit.py/select_motion_notify, _width and _height are set but not used. Other than that, it's the same code as in gtkmirror.py/select_motion_notify, which is the same code as in gtkmodify.py/select_motion_notify. -- --my blog is athttp://blog.russnelson.com | When immigr

[PythonCAD] _got_line?

2006-06-05 Thread Russ Nelson
In Interface/Gtk/gtkmirror.py/get_mirror_line_cb, a variable called "_got_line" is being set, but is never being used. Should that line be removed? -- --my blog is athttp://blog.russnelson.com | When immigration is Crynwr sells support for free software | PGPok | outlawed, only criminals

[PythonCAD] bug in mirror selection

2006-06-06 Thread Russ Nelson
o Modify/Mirror o Click on a construction line o It says "Click on the objects to mirror" o Click on an object Mirrored. o It says "Click on the mirroring construction line" Perhaps it should say "Click on the object to mirror"? Maybe, since it allows a rubberband select, it should say

[PythonCAD] Tutorial 1

2006-06-06 Thread Russ Nelson
ve As Type the filename. PythonCAD will append .xml.gz Russ Nelson Last modified: Tue Jun 6 12:06:09 EDT 2006 ___ PythonCAD mailing list [email protected] http://mail.python.org/mailman/listinfo/pythoncad

Re: [PythonCAD] bug in mirror selection

2006-06-06 Thread Russ Nelson
Art Haas writes: > I've tweaked this code slightly after reading your mail. I changed > the prompt after the mirror line is selected, and if the first mouse > click doesn't land on an object then the prompt changes again to > indicate the selection is done via boxing the objects. Hrm. I've go

[PythonCAD] Postscript as final output?

2006-06-06 Thread Russ Nelson
I'm trying (as I said before) to design a set of holes for switches, and I want to use the printed output as a template for cutting holes. I'll print the output on sticky-back paper, stick it to the panel, and cut right from the printout. Not clear to me what "size" paper I should select to get a

[PythonCAD] components?

2006-06-07 Thread Russ Nelson
Is there a way to create components in PythonCAD? There are two ways components might work: held together as a set of objects, or inserted into a drawing as unaggregated objects. The latter is already implementable using cut and paste. Load up a component's drawing in a File/New window, select t

[PythonCAD] state table?

2006-06-08 Thread Russ Nelson
I've been looking at the way various components get specified, and there seems to be a fair amount of overlap. And yet the callback system of gtk doesn't lend itself well to subroutines. I wonder if it might be a great simplification to have a state table? Instead of changing the callback handle

[PythonCAD] state table details

2006-06-08 Thread Russ Nelson
I'm trying to avoid working on what I *should* be working on, so I banged out some details of the proposed state table. The callbacks look at the current state's 'input' value to see what they should do. The motion notify will rubberband from the previously saved point (and Radius and Angle) if re

[PythonCAD] intersecting construction lines?

2006-06-08 Thread Russ Nelson
Hi. How do I put a point at the intersection of two construction lines? I mean, apart from zooming WAY in, and eyeballing the intersection? Sorry to ask a dumb question, the answer for which I could probably get by grovelling through the source code. Sometimes ya wanna hack, and other times you

Re: [PythonCAD] intersecting construction lines?

2006-06-08 Thread Russ Nelson
Art Haas writes: > You shouldn't have to zoom in, just click on the intersection. The > program will try to find an intersection near where you click if one > exists. If you click too far away (about 5 pixels or so) then the > program is likely to either choose a point on one of the constructio

Re: [PythonCAD] intersecting construction lines?

2006-06-08 Thread Russ Nelson
Art Haas writes: > I'm not sure what you mean when you write 'set two points on the > diagonal'. Regardless, I'll do some drawing and see if I can duplicate > the problem. The O's are points, the crosses are intersections without a point, and the lines are either construction lines or segments

Re: [PythonCAD] rotating objects?

2006-06-10 Thread Russ Nelson
Art Haas writes: > Adding a Rotate operation would be great. Still working on that. I'm noticing that there isn't much error reporting. For example, if you Modify/Mirror something, and then don't click on a construction line, it doesn't tell you that. Is that a feature or a bug? -- --my blog

Re: [PythonCAD] intersecting construction lines?

2006-06-10 Thread Russ Nelson
Art Haas writes: > The patch below contains the changes listed above, and I've > also sent the changes to the public repo so people using > Subversion can get the fix with 'svn update'. Woo hoo! Well done. Now I have to remember what I was doing when I ran across this. :-) -- --my blog is

[PythonCAD] zooming with mouse wheel

2006-06-12 Thread Russ Nelson
This patch allows you to zoom in and out using the mouse wheel. I think it has three problems: 1) the scroll increment is too large for a wheel. 2) it's a little hackish to be calling a menu item (but I wanted the patch to be short). 3) The scrolling should also pan at the same time so

[PythonCAD] menu creation via tables?

2006-06-12 Thread Russ Nelson
Should menus be created via tables? I suggest this because it will reduce the amount of code that people need to read. The menu creation code is very structured. The reason not to do it is because some day a menu entry (e.g. a "Recent Files" menu) may need to be computed rather than static. I a

[PythonCAD] printing bug?

2006-06-27 Thread Russ Nelson
When you print something with dimensions, it appears as if the text of the dimensions is being printed twice: once as a TextBlock, and again as a DimString. -- --my blog is athttp://blog.russnelson.com | When immigration is Crynwr sells support for free software | PGPok | outlawed, only cr

[PythonCAD] patch for exact printing

2006-06-27 Thread Russ Nelson
I plan to create some parts by printing to sticky paper, sticking the paper directly to the raw material, and then cutting the part out. Thus, I need "Exact" scale printing, so that something drawn 10cm x 10cm gets printed at 10cm x 10cm regardless of the size of the paper. Units are taking into ac

Re: [PythonCAD] PythonCAD Web Site

2006-08-02 Thread Russ Nelson
Franklin Bowie writes: > Is there an active website for PythonCAD? www.pythoncad.org does > not seem to exist. It's working for me. -- --my blog is athttp://blog.russnelson.com | Teachers teach in spite Crynwr sells support for free software | PGPok | of what children do. 521 Pleas

Re: [PythonCAD] List of desired features on Wiki... and what about them?

2007-05-26 Thread Russ Nelson
Art Haas writes: > I'm the only regular programmer on the project. Other people have > contributed bug fixes and patches, but there hasn't been anyone who has > become a regular contributor. That's the problem I'm hoping to resolve, > and I'm glad to see that there's been some traffic on the ma

Re: [PythonCAD] Problem with fillets

2007-06-22 Thread Russ Nelson
Ed Richley writes: > I think I can fix this by ensuring that end angle > start angle in > the PS arc command, but I wonder if that creates a new problem. No, that should be fine. -- --my blog is athttp://blog.russnelson.com | In my head, I'm Crynwr sells support for free software | PGPo

Re: [PythonCAD] Copy of website sought

2008-03-09 Thread Russ Nelson
Art Haas writes: > I made the DNS changes at NetworkSolutions last weekend, but apparently > messed things up somehow as the PythonCAD website is still offline. I've > been swamped at work and haven't had time to try and figure out what > needs to be done to get the website back online. Should

Re: [PythonCAD] advantages

2012-04-03 Thread Russ Nelson
Paulo Silva writes: > more than open source, it's software libre (confusions between open > source and software libre must be avoided, for example, Microsoft has > open source licenses that they are not libre at all) What ARE you talking about?? If a license is open source, it's software livre.

Re: [PythonCAD] advantages

2012-04-04 Thread Russ Nelson
Paulo Silva writes: > > On 4/4/12, Russ Nelson wrote: > > Paulo Silva writes: > > > more than open source, it's software libre (confusions between open > > > source and software libre must be avoided, for example, Microsoft has > > > open so