Jump to content

Recommended Posts

Posted

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!

Posted (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 by pkenewell
Posted

Please upload a small sample drawing containing a block that my program was unable to delete.

Posted (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 by Lee Mac
Posted

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.

 

 

Delete points.PNG

Posted

Leemac, zwcad i tryed it on for some days ago

Posted
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.

Posted

 

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

Posted
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?

Posted
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?

 

thisone.PNG

Posted

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)))))))

 

 

  • Like 1
Posted (edited)

@rlx have you got YOUR place on the couch back yet? :twisted:

 

We missed you. :cry:

Edited by dlanorh
Posted

@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... 😢

Posted (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 by BIGAL

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...