On Mon, Mar 13, 2006 at 12:54:55PM -0600, Art Haas wrote: > Hi. > > I've been trying to fix the problem in transferring entities between > layers where Dimension entities become invalid, and it seems like the > change I made to the delObject() Layer method is a poor approach. The > method was changed so that deleted objects do not have to have > a finish() method invocation if delObject() is called with an > optional 'False' argument, leaving the entity with whatever values/users > it had while disconnecting from the storing layer. The trouble is when > doing an undo/redo operation, delObject() is called without the optional > argument, so finish() gets invoked, and things get messed up. > > I have a couple of ideas on how to fix this, and I'll be testing them > over the next few days. When I hit on a solution I like I'll send a > message out to the list.
I've tried a couple of ideas, but things just aren't working out. The problem always gets sticky when trying to handle undo/redo operations for the Layer 'added_child' and 'removed_child' messages. Presently it looks like I'll revert most of the changes to the 'transfer.py' file and make some simplifications to the restored code, but I'm still not giving up on finding a better solution based on the new code. 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 _______________________________________________ PythonCAD mailing list [email protected] http://mail.python.org/mailman/listinfo/pythoncad
