CountV1-5.lsp Counting blocks for Autocad in MAC

CountV1-5.lsp Counting blocks for Autocad in MAC

Maria.delamota
Observer Observer
2,783 Views
3 Replies
Message 1 of 4

CountV1-5.lsp Counting blocks for Autocad in MAC

Maria.delamota
Observer
Observer

Hi,

 

I used to have Autocad for Windows but now my company has moved to Mac. 

I have this lisp that work perfectly in Windows but it is not working for Mac.

Does someone know if there is a lisp somewhere which does the same but works in MAc version?

 

This plugging does the counting blocks and output the data into a table on the drawings?

 

Thank you very much

 

0 Likes
2,784 Views
3 Replies
Replies (3)
Message 2 of 4

maxim_k
Consultant
Consultant

Welcome to Autodesk Forums!

 

Hi @Maria.delamota ,

 

>>>>>>I have this lisp that work perfectly in Windows but it is not working for Mac.

 

This is because this AutoLISP routine uses VL-functions not supported on Mac.

 

I have one simple AutoLISP routine which can count blocks in a drawing and writes the count result to CSV file.

It asks for block name to count (press Return to count all blocks), then it asks to select area of the drawing to count blocks and finally it asks for CSV file name to save the count information.

The limitation is that the routine cannot count Dynamic Blocks.

Look for this LSP in the attachment.

After loading it with APPLOAD command use COUNT command to start routine.

 


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes
Message 3 of 4

Maria.delamota
Observer
Observer

Thanks for this.

 

I have tried this plugging and it works, but only gives the info in a spreadsheet.

I would like to have the option of making a table like the this plugging does CountV1-5.lsp.

I wish to know how to program in Autolisp to complete this plugging that you suggest me.

 

thank you very much for replying me. Really appreciate it .

 

0 Likes
Message 4 of 4

maxim_k
Consultant
Consultant

Hi Maria,

 

>>>>I wish to know how to program in Autolisp to complete this plugging that you suggest me.

 

This is not a trivial task even if you are familiar with AutoLISP, especially since AutoCAD for Mac does not support Visual Lisp features.

I can you suggest a workaround:

After you extract block count information to CSV file, you can open it with Excel or even Numbers app, save as Excel spreadsheet and then use DATALINK command to create table in the drawing.

 


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Likes