Lee Mac Posted June 6, 2010 Posted June 6, 2010 (edited) 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 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 June 15, 2014 by Lee Mac Quote
Lee Mac Posted June 6, 2010 Author Posted June 6, 2010 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. Quote
viviancarvalho Posted June 6, 2010 Posted June 6, 2010 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. Quote
Lee Mac Posted June 6, 2010 Author Posted June 6, 2010 Thanks Vivian I'm glad you can make use of it Quote
Guest kruuger Posted June 6, 2010 Posted June 6, 2010 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? Quote
Lee Mac Posted June 6, 2010 Author Posted June 6, 2010 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. Quote
Lee Mac Posted June 6, 2010 Author Posted June 6, 2010 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. Quote
Guest kruuger Posted June 6, 2010 Posted June 6, 2010 ... 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 Quote
Lee Mac Posted June 6, 2010 Author Posted June 6, 2010 Nice idea, I may incorporate this into a future version. Quote
sachindkini Posted June 7, 2010 Posted June 7, 2010 Dear Sir, Very Good Program, u r Great Sir 1 more request Rename this program Its (legend maker) Quote
viviancarvalho Posted June 7, 2010 Posted June 7, 2010 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. Quote
asos2000 Posted June 7, 2010 Posted June 7, 2010 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 Quote
Lee Mac Posted June 7, 2010 Author Posted June 7, 2010 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. Quote
asos2000 Posted June 7, 2010 Posted June 7, 2010 What about sorting the table? Could a question be added to ask the user ether he wants to sort by block name or quantity? Quote
Lee Mac Posted June 7, 2010 Author Posted June 7, 2010 I suppose I could include that in the Options Dialog - the table is currently sorted by Block Name Quote
rengised Posted June 8, 2010 Posted June 8, 2010 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 Thanks for sharing. Quote
The Buzzard Posted June 9, 2010 Posted June 9, 2010 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? Quote
Recommended Posts
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.