New Script Add-on, Purge Tool

This forum is for 'Work-in-Progress' QCAD user developed script Add Ons and Plug-ins.

Please use this forum to request/submit your script Add-Ons & Plug-in idea's.

Moderators: andrew, Husky, J-J

Re: New Script Add-on, Purge Tool

Postby J-J » Thu Mar 07, 2013 10:26 pm

Thanks for the reminder Clive, that's one tool which will be a definite plus!
JJ
User avatar
J-J
Moderator
 
Posts: 310
Joined: Tue Mar 24, 2009 9:48 pm

Re: New Script Add-on, Purge Tool

Postby Husky » Wed Mar 20, 2013 8:36 am

Thanks guys - that is a nice and powerful tool! Thumps up!

I have one question about it: From time to time we are faster than we should - but we have a "Undo" function.
If I use the Purge tool it cleans nicely all unused Layer and Blocks - but if I use the "Undo" Function only the layer are coming back - the Blocks are gone for ever.
My understanding for a "Undo" is everything has to be "un-done". Why is that so?
User avatar
Husky
Moderator/Drawing Help/Testing
 
Posts: 1132
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: New Script Add-on, Purge Tool

Postby andrew » Wed Mar 20, 2013 9:13 am

Husky: two transactions are necessary to purge layers and blocks. An otherwise unused layer might be used by an unreferenced block. So blocks are purged first, then the transaction is committed and then layers are purged.

To undo, hit undo twice for both transactions.

To avoid this confusion, we might have to split up the tool into two tools.
User avatar
andrew
Site Admin
 
Posts: 3986
Joined: Fri Mar 30, 2007 6:07 am

Re: New Script Add-on, Purge Tool

Postby Husky » Wed Mar 20, 2013 7:12 pm

andrew wrote:To undo, hit undo twice for both transactions. To avoid this confusion, we might have to split up the tool into two tools.

Yep - twice works - thanks!
Two tools - sounds good to me. That means even more flexibility to clean up a drawing. Nice!
User avatar
Husky
Moderator/Drawing Help/Testing
 
Posts: 1132
Joined: Wed May 11, 2011 9:25 am
Location: USA


Return to QCAD 3 ' Script Add-On & Plug-in challenge ' - Work in Progress

Who is online

Users browsing this forum: No registered users and 2 guests