Please update a VLisp routine with a classic ACAD selection

Please update a VLisp routine with a classic ACAD selection

braudpat
Mentor Mentor
988 Views
5 Replies
Message 1 of 6

Please update a VLisp routine with a classic ACAD selection

braudpat
Mentor
Mentor

Hello

 

I have a nice VLisp routine "Cnt_Into_Blk" ...

 

This routine give the info (how many entities and which entities) from ALL Blocks from the current DWG !

 

Please I need an updated version which will ask for a classic ACAD selection

... Select ... And retain only Blocks from the selection ...

 

Thanks in advance for your help !

 

THE HEALTH (Stay Safe, Stay Home, Stay Live), Regards, Patrice (The Retired Old French EE Froggy)

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes
Accepted solutions (1)
989 Views
5 Replies
Replies (5)
Message 2 of 6

devitg
Advisor
Advisor

Hi, @braudpat  For better understanding, and maybe get further help, please upload such sample.dwg

0 Likes
Message 3 of 6

braudpat
Mentor
Mentor
Hello

Thanks for your attention !

Please use the VLisp routine "Cnt_Into_Blk" with any of your DWG with Blocks (Classic & Dynamic) ...
And you will see the result on the text screen ...

I would like to be able to do a classic AutoCAD selection !
So I need the result ONLY with selected Blocks ... NOT ALL Blocks of the current DWG ...

THE HEALTH, Regards, Patrice
Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes
Message 4 of 6

devitg
Advisor
Advisor

Hi , @braudpat , do you mean BLOCKs , or blocksreferences.?

As per this line 

(vlax-for blo (vla-get-blocks doc)

It return the BLOCKS at a DWG , and NOT the Blkreferences or INSERTED BLOCK's

That's why I ask for a DWG sample. 

 

 

Message 5 of 6

hak_vz
Advisor
Advisor
Accepted solution

@braudpat  I hope modified file in attachment is what you looking for.

 

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Message 6 of 6

braudpat
Mentor
Mentor

Hello @hak_vz 

 

THANKS for your effort - It's exactly what I was asking for ...

 

THE HEALTH, Regards, Patrice

 

Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature