Jump to content

Lisp to set all properties inside a block to ByBlock


Recommended Posts

Posted
4 hours ago, Thomas Schlüssi said:

Hi!

 

Thanks for the reply. Worked for me now too. Had an error yesterday with "File no longer available".

 

But unfortunately the LISP doesn't do what I need. I would have thought that the LISP would open a window as quoted below where I could choose which properties I would like to have. My goal is to set the entire drawing to ByLayer.

 

 

You should start another thread then describing what you want in detail. This one is about setting all properties inside a block to ByBlock.

Posted
39 minutes ago, tombu said:

You should start another thread then describing what you want in detail. This one is about setting all properties inside a block to ByBlock.

 

I know, but the final version of the LISP is able let me choose if i want ByBlock oder ByLayer (see quote below). 

The only problem is that the i cant find the final LISP code here. 

 

So im asking if someone (maybe @rlx himself) could post it.

 

 

  

On 10/25/2020 at 11:14 PM, rlx said:

My mail box thinks you're spam 😁 , well punk are you? (with the voice of Clint Eastwood 🤣)

 

Oh I thought you wanted all ents inside block updated... silly me... good news is nos problemos, the bad news is , dragons never know when to stop and just have to go over the top so its gonna take more time before I'm satisfied (not the youngest dragon on the block anymore ya know)

 

🐉

 

 

 

BlockByBlock_Dialog.jpg

 

 

Posted
5 hours ago, Thomas Schlüssi said:

Hi!

 

Thanks for the reply. Worked for me now too. Had an error yesterday with "File no longer available".

 

But unfortunately the LISP doesn't do what I need. I would have thought that the LISP would open a window as quoted below where I could choose which properties I would like to have. My goal is to set the entire drawing to ByLayer.

 

 

Have you tried the SETBYLAYER (Command)?

Posted
12 minutes ago, tombu said:

Have you tried the SETBYLAYER (Command)?

Yes, and it does what i want. But still i would be intereseted in this LISP.

Tanks for your help.

Posted

This is last version I have on my laptop. Hope it's the latest , not sure. At the end of the main loop I've added the setbylayer command with some remarks. Not sure if its what you need but that's for you to find out. I'm sorry I don't have much time right now , have to deal with the aftermath of afterlife party (my dad , 91)

BlockByBlock.lsp

  • Like 1
Posted
7 minutes ago, rlx said:

This is last version I have on my laptop. Hope it's the latest , not sure. At the end of the main loop I've added the setbylayer command with some remarks. Not sure if its what you need but that's for you to find out. I'm sorry I don't have much time right now , have to deal with the aftermath of afterlife party (my dad , 91)

BlockByBlock.lsp 67.19 kB · 0 downloads

 

Thank you really much! 😂

 

  • 1 year later...
Posted

@rlx, I'm using ACAD 2025 and when I click on 1 by 1, I cannot pick a block. See below. The pick is using grread so I don't know how to fix the issue.

Posted (edited)

I am sooooo busy right now , just did the numbers : last month (october) I worked 96 hrs per week (weekends included , 24/7 , eat-work-sleep) , but there is light at the end of the tunnel at the end of this month (I hope)

 

I don't have AutoCad 2025. Maybe one of my fellow cad-tutors who has this AutoCad version can have a quick look? Maybe grread command is different is this version? Else I (or you) could try to replace it with nentsel or something.You've been around on this forum quite some time so you're no beginner anymore 🙂

 

Uploaded lisp from my work computer , it looks the same like I uploaded before but just to be safe...

It seems to work on my 2022 version so not sure if and why it should not work on 2025. Checked AutoCad changelog for any changes in lisp and so far I couldn't find any.

 

BlockByBlock.lsp

Edited by rlx

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