See the top rated post in this thread. Click here

Results 1 to 10 of 10

Thread: Count the number of Blocks in a drawing file

  1. #1
    Active Member
    Join Date
    2004-06
    Posts
    95
    Login to Give a bone
    0

    Default Count the number of Blocks in a drawing file

    Hello,

    I am looking for a way to calculate how many blocks I have in a drawing and display the information as a field in a table for a schedule. Is this possible?

  2. #2
    I could stop if I wanted to bpayne's Avatar
    Join Date
    2016-01
    Location
    Apex, NC
    Posts
    211
    Login to Give a bone
    1

    Default Re: Count the number of Blocks in a drawing file

    QuickSelect will tell you how many instances of a block there are in any given drawing, but I am not aware of a way to place that information in a field.

  3. #3
    The Silent Type Mike.Perry's Avatar
    Join Date
    2000-11
    Posts
    13,656
    Login to Give a bone
    0

    Default Re: Count the number of Blocks in a drawing file

    Hi

    Please note I've *moved* this thread from the ACAD 2005 General Forum to this one as I feel this particular Forum is a more appropriate place for such a topic.

    Thanks, Mike

    Forum Moderator

  4. #4
    All AUGI, all the time
    Join Date
    2011-05
    Posts
    926
    Login to Give a bone
    0

    Default Re: Count the number of Blocks in a drawing file

    Without looking up the specific steps, you should be able to attach attributes to the blocks, giving them as much information as you dare. You can then generate a table of those objects.

  5. #5
    The Silent Type RobertB's Avatar
    Join Date
    2000-01
    Location
    Seattle WA USA
    Posts
    5,859
    Login to Give a bone
    0

    Default Re: Count the number of Blocks in a drawing file

    Quote Originally Posted by ajtrahan
    I am looking for a way to calculate how many blocks I have in a drawing and display the information as a field in a table for a schedule. Is this possible?
    Not really, at least with fields. By the time you use code to count the insertions, it is only one more step to slap that number in the table. A field won't help at all.

  6. #6
    Member dkantrud5699's Avatar
    Join Date
    2000-12
    Location
    Minnesota
    Posts
    4
    Login to Give a bone
    0

    Red face Re: Count the number of Blocks in a drawing file

    In a demo of AutoCAD 2006 they showed a table being updated with the total number of inserted lights in a drawing but I don't know how they formatted the field in the cell of the table to do it..... I'd like to know?

    If any one knows how to do this please let me know.
    Last edited by dkantrud; 2005-06-08 at 06:48 PM.

  7. #7
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,105
    Login to Give a bone
    0

    Default Re: Count the number of Blocks in a drawing file

    Quote Originally Posted by dkantrud
    In a demo of AutoCAD 2006 they showed a table being updated with the total number of inserted lights in a drawing but I don't know how they formatted the field in the cell of the table to do it..... I'd like to know?

    If any one knows how to do this please let me know.
    Try using the Attribute Extraction Wizard under Tools
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  8. #8
    Member dkantrud5699's Avatar
    Join Date
    2000-12
    Location
    Minnesota
    Posts
    4
    Login to Give a bone
    0

    Smile Re: Count the number of Blocks in a drawing file

    The Attribute Extraction Wizard was just what I was looking for... perfect.

    Thank you RichardL.25628,
    Dave Kantrud

  9. #9
    Member
    Join Date
    2006-01
    Posts
    4
    Login to Give a bone
    0

    Default Re: Count the number of Blocks in a drawing file

    dkantrud - the attribute extraction wizard is OK, as long as you have NO intentions of modifying the table it creates! If you modify it, and then change you drawing (add another instance of a block) it will prompt you to update the table, and it will destroy ALL of the modifications you made to the table! Not exactly what I would call friendly!!!
    Mabey 2008 will have this fixed!

  10. #10
    I could stop if I wanted to lmitsou's Avatar
    Join Date
    2003-01
    Location
    UK
    Posts
    219
    Login to Give a bone
    0

    Default Re: Count the number of Blocks in a drawing file

    You may want to give this a try

    http://forums.augi.com/showthread.ph...ht=block+count

    The dvb file by zoomharis is quite good!

Similar Threads

  1. Replies: 14
    Last Post: 2009-05-22, 02:21 AM
  2. Replies: 10
    Last Post: 2008-12-12, 08:04 PM
  3. AutoCAD LT 2007 - Counting number of Blocks in a DWG file?
    By seanp in forum AutoCAD LT - General
    Replies: 16
    Last Post: 2007-03-11, 11:44 PM
  4. Count number of dynamic blocks of different size as seperate items
    By Steve_Bennett in forum Dynamic Blocks - Technical
    Replies: 3
    Last Post: 2006-11-14, 05:42 PM
  5. Routine to count the number of Layouts in a drawing
    By pgastelum77763 in forum AutoLISP
    Replies: 9
    Last Post: 2005-07-07, 02:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •