[PythonCAD] Moving objects breaks dimensions

Art Haas ahaas at airmail.net
Mon Feb 13 16:45:25 CET 2006

On Sat, Feb 11, 2006 at 09:37:37AM -0600, Art Haas wrote:
> I see if I can duplicate this today. If you drew a box around the
> dimension in addition to the entities then the dimension text should
> have moved. Maybe there is a bug in determining that the dimension
> was within the boxed region.

Ugh. I found a stupid typo, but this does not completely resolve
things. I am embarrassed ...

Index: PythonCAD/Generic/move.py
--- PythonCAD/Generic/move.py	(revision 2166)
+++ PythonCAD/Generic/move.py	(revision 2167)
@@ -599,7 +599,7 @@
                 elif isinstance(_obj, Polyline):
                     _move_polyline(_obj, _objdict, _dx, _dy)
                 elif isinstance(_obj, (TextBlock, Dimension)):
-                    _obj.move(_nx, _ny)
+                    _obj.move(_dx, _dy)
                 elif isinstance(_obj, (HCLine, VCLine, ACLine)):
                     _move_spcline(_obj, _objdict, _dx, _dy)
                 elif isinstance(_obj, (Chamfer, Fillet)):

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

More information about the PythonCAD mailing list