I need to know if an object is inside or outside a block.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello boys how are you.
I have a question, to see if you can give me a hand with this.
I need to know if an object is inside or outside a block.
I am currently obtaining the properties of the following way.
(dumpAllProperties (car (entsel)) 1)
And if I need something specific I use it in the following way.
(getpropertyvalue (car (entsel)) "LocalizedName")
There is the possibility of knowing with these functions that I am using, if an object is inside a block or outside the block.
Is that when I'm editing a block with refedit and I need to select all the points that are inside the block to delete them, it works fine, but in the same way if there are points that are outside the block, these are also deleted and so it does not work.
Beforehand thank you very much.
Excuse my English, I only speak Spanish.
AutoCAD 2026
Visual Studio Code 1.99.3
AutoCAD AutoLISP Extension 1.6.3
Windows 10 (64 bits)