Fredricc Posted December 13, 2019 Posted December 13, 2019 Hello cadtutor! im serching for a function or even better, a lisp for this! If i got 200 block's with different names, each block are in a separate layer, now i want to get rid of them all from the drawing! some function i can pick them on a easy way what block reference i want to delete ? Any easy way to do this smooth ? If i got 200 single points with xyz in 200 different layers, how do i delete just the single points, and keep blocks,lines and so on! Quote
pkenewell Posted December 13, 2019 Posted December 13, 2019 (edited) The app store has some useful and free stuff: https://apps.autodesk.com/ACD/en/Detail/Index?id=8097315794622038979&appLang=en&os=Win32_64 https://apps.autodesk.com/ACD/en/Detail/Index?id=291964691566473284&appLang=en&os=Win32_64 You can also use the FILTER command, Select Filter > "Block" > Add to List > Layer > Enter a wildcard match (like "Q*" to get all layers that start with Q) > Add to List > Apply. Edited December 13, 2019 by pkenewell Quote
Fredricc Posted December 14, 2019 Author Posted December 14, 2019 http://www.lee-mac.com/deleteblocks.htmlhttp://www.lee-mac.com/deleteblocks.html this one dosent work for me about the blocks, why ? is it becouse its used as reference or ? Quote
Lee Mac Posted December 14, 2019 Posted December 14, 2019 Please upload a small sample drawing containing a block that my program was unable to delete. Quote
Fredricc Posted December 14, 2019 Author Posted December 14, 2019 all blocks who is geo, its a bunch of single nodes (blocks) Test.dwg Quote
Lee Mac Posted December 14, 2019 Posted December 14, 2019 (edited) I was able to delete the blocks in your sample drawing successfully using my Delete Blocks program, both when selecting the block from the drawing and when choosing the block by name. What platform are you using? Edited December 14, 2019 by Lee Mac Quote
eldon Posted December 14, 2019 Posted December 14, 2019 One way of deleting the points is to format them as crosses, and size them as 10000 (or bigger) absolute units. The points will spread out wider than any detail and you can erase them all with a crossing window. Quote
Fredricc Posted December 14, 2019 Author Posted December 14, 2019 thats for points, if its blocks ? eldon Quote
Fredricc Posted December 14, 2019 Author Posted December 14, 2019 Leemac, zwcad i tryed it on for some days ago Quote
eldon Posted December 14, 2019 Posted December 14, 2019 20 hours ago, Fredricc said: ......If i got 200 single points with xyz in 200 different layers, how do i delete just the single points, and keep blocks,lines and so on! 24 minutes ago, Fredricc said: thats for points, if its blocks ? eldon I was responding to your original request about deleting points. Blocks is different. Quote
Fredricc Posted December 14, 2019 Author Posted December 14, 2019 2 hours ago, Lee Mac said: I was able to delete the blocks in your sample drawing successfully using my Delete Blocks program, both when selecting the block from the drawing and when choosing the block by name. What platform are you using? zwcad im going with, dosent work there! i get the menu up but an error after marked all the blocks i want to delete Quote
Lee Mac Posted December 14, 2019 Posted December 14, 2019 2 hours ago, Fredricc said: zwcad im going with, dosent work there! i get the menu up but an error after marked all the blocks i want to delete I cannot guarantee the compatibility of any of my programs within ZWCAD; out of interest, what error do you receive? Quote
Fredricc Posted December 14, 2019 Author Posted December 14, 2019 1 hour ago, Lee Mac said: I cannot guarantee the compatibility of any of my programs within ZWCAD; out of interest, what error do you receive? Quote
rlx Posted December 15, 2019 Posted December 15, 2019 you just want to delete the blocks with geo in the name? As mentioned before the filter command should work or something like this maybe? (defun c:t1 ( / ss i ) (if (setq ss (ssget "x" (list (cons 0 "insert") (cons 2 "*geo*")))) (repeat (setq i (sslength ss)) (entdel (ssname ss (setq i (1- i))))))) 1 Quote
dlanorh Posted December 15, 2019 Posted December 15, 2019 (edited) @rlx have you got YOUR place on the couch back yet? We missed you. Edited December 15, 2019 by dlanorh Quote
rlx Posted December 15, 2019 Posted December 15, 2019 @dlanorh jip... I have my place on my couch back and I needed it tonight, had x-mas dinner but ate to much so just dry crackers for me the rest of the week I'd rather fill in my tax return papers than my timesheet at the moment , have to specify everything I do down to the last drawing pfff so not much time to lisp I'm afraid... Quote
BIGAL Posted December 15, 2019 Posted December 15, 2019 (edited) For Frederic and Lee did find I think Dutch post about lisp-checker for ZWCad a U-tube. It may give better clue of error. Had problems with Intellicad many years ago, subtle change to code required like 20 years ago. Lee sent you email awhile ago about a problem with Briscad and using one of your routines and error was to do with a dcl. Edited December 15, 2019 by BIGAL Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.