Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Please update a VLisp routine with a classic ACAD selection

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
braudpat
688 Views, 5 Replies

Please update a VLisp routine with a classic ACAD selection

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


5 REPLIES 5
Message 2 of 6
devitg
in reply to: braudpat

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

Message 3 of 6
braudpat
in reply to: devitg

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


Message 4 of 6
devitg
in reply to: braudpat

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
in reply to: braudpat

@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
in reply to: hak_vz

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


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost