Jump to content

Block Counter (Includes Dynamic Blocks)


Lee Mac

Recommended Posts

This program will act similarly to BCount, but will also count Dynamic Blocks.

 

The output is printed to the command line and may optionally be written to either a Text or CSV file, and if running in a version of AutoCAD that supports AutoCAD Table Objects (2005+ I believe), the user has the option to display the results in a table with complete control over the table headings and layout.

 

With the Table Block Preview enabled, the program could also be used to easily create Legends.

 

Let me know what you think of the code/program functionality :)

 

Count.gif

 

countv1-4.png

 

A full description of the program and the latest version of the code may also be found on my site here.

CountV1-4.lsp

Edited by Lee Mac
Link to comment
Share on other sites

  • Replies 131
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    58

  • The Buzzard

    7

  • autolisp

    5

  • piscopatos

    4

Top Posters In This Topic

Posted Images

Thanks Asos, I'm glad you like it :)

 

I think the Table Settings menu needs to be perhaps changed to use a dialog, as the menus are a bit long winded.

Link to comment
Share on other sites

Hey Lee

Thats just incredible.

It cannot only be used for counting blocks, but is also the easiest way to create legends. & i know the final version of this is going to be the best.

Thanks Lee.

Link to comment
Share on other sites

Guest kruuger

you shot me with this block preview:) great

 

one suggestion. can the user be asked where to store all your cfg file? (i saw that now you search for acad.pat file and there save files)

i think it will be more professional. also user can easier copy file to another computer because he know where to find these files.

 

thanks

kruuger

 

EDIT: nested block are not included? is this correct?

Link to comment
Share on other sites

Thanks Kruuger, I'm glad you like the program :)

 

As for the search path - I use this method with most of my programs, I try to leave as little to the user as possible. The program will save the cfg/dcl file to the Support path as per ROOTROAMABLEPREFIX, or if that sys var is not present, using the location of ACAD.pat - which is usually in the same place.

Link to comment
Share on other sites

EDIT: nested block are not included? is this correct?

 

Correct, nested blocks are not included. Inclusion of these would mean the program would run much slower, as it would have to dig through block definitions.

Link to comment
Share on other sites

Guest kruuger
... I try to leave as little to the user as possible...

you are right.

 

maybe toggle in settings to switch between autofit and block preview scale set by user?

 

kruuger

Link to comment
Share on other sites

Thanks Vivian :)

 

I'm glad you can make use of it :)

 

All of your programs are just great.

I make good use of your text & block align programs also.

Many thanks to you.

Link to comment
Share on other sites

What about adding nested block

And to avoid the the user to be bored because of the slow of the lisp

by asking the user to add the nested block to the table or not? So the user will decide to add nested blocks or not and adding a column to table (block type) and adding the file type is it normal or nested.

 

Hasan

Link to comment
Share on other sites

Dear Sir,

Very Good Program, u r Great

Sir 1 more request

Rename this program

Its (legend maker)

 

Haha thanks - but I do like 'Count' :)

 

All of your programs are just great.

I make good use of your text & block align programs also.

Many thanks to you.

 

Thanks Vivian, I'm happy that I could help you :)

 

What about adding nested block

And to avoid the the user to be bored because of the slow of the lisp

by asking the user to add the nested block to the table or not? So the user will decide to add nested blocks or not and adding a column to table (block type) and adding the file type is it normal or nested.

 

I really don't want to delve into nested blocks if I'm honest - there is a lot of digging around and it would mean a major bit of recoding of the program. :geek:

Link to comment
Share on other sites

What about sorting the table?

Could a question be added to ask the user ether he wants to sort by block name or quantity?

Link to comment
Share on other sites

LeeMac,

You are really amazing

You are better than magician..

Hope I can do what you can do

Nothing is impossible for you.

All thumbs up...

:o:o:o:o

Thanks for sharing.

Link to comment
Share on other sites

Lee,

 

I downloaded your recent code that had the dialog added to it. I run the code and it works well, But there is no dialog.

 

Whats up with that?

Am I doing something wrong?

Link to comment
Share on other sites

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