+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Junior Member
    Using
    AutoCAD LT 2006
    Join Date
    Jun 2007
    Posts
    23

    Default counting blocks using ATTEXT

    Registered forum members do not see this ad.

    Hi,
    I previously posted about creating parts lists in LT 2006 and was advised to use the attext command. Having finally worked out how to add/edit attributes and extract them to excel I still cannot get a block count for the list.

    I thought it would be the BL:Number attritubte tag but it only puts numbers on the list.

    So once again, is there a way to count quantities of blocks using ATTEXT and include the quantity with attribute information.

    thanks,

  2. #2
    Forum Deity StykFacE's Avatar
    Computer Details
    StykFacE's Computer Details
    Operating System:
    Windows Vista x64bit Business
    Computer:
    HP xw4600 Workstation
    CPU:
    Core2 Duo E8400 3.0GHz
    RAM:
    8GB DDR2-800
    Graphics:
    nVidia Quadro FX1700 512MB
    Stotage:
    250GB SATA
    Monitor:
    Dual Acer 19" LCD
    Using
    MEP 2010
    Join Date
    Mar 2006
    Location
    Dallas, TX - USA
    Posts
    3,919

    Default

    I think this counts it automatically.... you don't even need a block to have an Attribute. Are you using the wizard?
    Tannar Frampton | Venture Mechanical - Dallas, TX
    Engineering/Construction department | AutoCAD MEP 2010 / Revit MEP 2010

  3. #3
    Junior Member
    Using
    AutoCAD LT 2006
    Join Date
    Jun 2007
    Posts
    23

    Default

    I dont think 2006LT has the wizard, its not in the wizards menu

    i type attext in the command line and use a template .txt file i have created.

  4. #4
    Forum Deity StykFacE's Avatar
    Computer Details
    StykFacE's Computer Details
    Operating System:
    Windows Vista x64bit Business
    Computer:
    HP xw4600 Workstation
    CPU:
    Core2 Duo E8400 3.0GHz
    RAM:
    8GB DDR2-800
    Graphics:
    nVidia Quadro FX1700 512MB
    Stotage:
    250GB SATA
    Monitor:
    Dual Acer 19" LCD
    Using
    MEP 2010
    Join Date
    Mar 2006
    Location
    Dallas, TX - USA
    Posts
    3,919

    Default

    ah, that's probably the case then... I haven't ever tried it on LT before, but I have heard there are limitations.
    Tannar Frampton | Venture Mechanical - Dallas, TX
    Engineering/Construction department | AutoCAD MEP 2010 / Revit MEP 2010

  5. #5
    Junior Member
    Using
    AutoCAD LT 2006
    Join Date
    Jun 2007
    Posts
    23

    Default

    I've been pretty sucessful up to a point, it is only when using the ttext command and I need to select objects, I select the block I want and the file only shows the attributes I've listed and not the number of blocks in the drawing.

    I've tried to fudge it by clicking select objects then using the quick select tool to select all of the blocks but it doesnt work, anyone know a way around this?

  6. #6
    Junior Member
    Using
    AutoCAD LT 2006
    Join Date
    Jun 2007
    Posts
    23

    Default

    I've come up with a solution, albeit not a very elegant one

    so for those with LT wanting to make parts lists here you go

    create a template file along these lines

    NAME C040000
    MATERIAL C030000
    HEIGHT N008002
    WIDTH N008002
    LENGTH N008002
    MANUFACTURER C040000
    QUANTITY N008002

    create attribute tags with these fields for your blocks
    under quantity put 1, unless you have several blocks within a larger block then i would just reference one of them and change the quantity

    now when exporting choose .csv as the output file, rename the resulting .txt file as .csv and open with excel

    in Excel click the A/Z arrow which arranges everything alphabetically

    sum all similarly named entries

    and you have a parts list yay

    seems more work than its worth, but its what the boss wanted

    thoughts?

  7. #7
    Senior Member brassworks's Avatar
    Using
    AutoCAD 2008
    Join Date
    Sep 2006
    Location
    Woburn, Massachusetts, USA
    Posts
    127

    Default

    The BCOUNT command will list the number of blocks by block name - I don't know that it will give you any attribute information. But I found out about this command from "Michael's Corner" in this website. (This is a great newsletter, by the way.) The information about this command is found in 'The Odd Spot' section of the May 2004 newsletter. The routine counts the number of block references and creates a table with the name of each block and the quantity of each block within the selection area.
    Did you hear about the drafter who died? He couldn't draw his breath.

  8. #8
    Forum Deity StykFacE's Avatar
    Computer Details
    StykFacE's Computer Details
    Operating System:
    Windows Vista x64bit Business
    Computer:
    HP xw4600 Workstation
    CPU:
    Core2 Duo E8400 3.0GHz
    RAM:
    8GB DDR2-800
    Graphics:
    nVidia Quadro FX1700 512MB
    Stotage:
    250GB SATA
    Monitor:
    Dual Acer 19" LCD
    Using
    MEP 2010
    Join Date
    Mar 2006
    Location
    Dallas, TX - USA
    Posts
    3,919

    Default

    Quote Originally Posted by brassworks View Post
    The BCOUNT command will list the number of blocks by block name - I don't know that it will give you any attribute information. But I found out about this command from "Michael's Corner" in this website. (This is a great newsletter, by the way.) The information about this command is found in 'The Odd Spot' section of the May 2004 newsletter. The routine counts the number of block references and creates a table with the name of each block and the quantity of each block within the selection area.
    Doesn't work with LT tho.
    Tannar Frampton | Venture Mechanical - Dallas, TX
    Engineering/Construction department | AutoCAD MEP 2010 / Revit MEP 2010

  9. #9
    Senior Member brassworks's Avatar
    Using
    AutoCAD 2008
    Join Date
    Sep 2006
    Location
    Woburn, Massachusetts, USA
    Posts
    127

    Default

    Aw, shucks!
    Did you hear about the drafter who died? He couldn't draw his breath.

  10. #10
    Super Member
    Using
    Architectural DT 2008
    Join Date
    Jan 2006
    Location
    canada, eh!
    Posts
    585

    Default

    you should be able to use the filter command...add the block name to the list, hit apply, type in "all" (to select every thing) hit enter and in the command line there will be an entry of "## found " (although you may need to scroll back to see it)...

Similar Threads

  1. counting/autoupdating
    By CADtech in forum AutoLISP, Visual LISP & DCL
    Replies: 36
    Last Post: 15th May 2008, 03:56 pm
  2. counting the blocks, how will i add new column...?
    By madaryl in forum AutoCAD General
    Replies: 2
    Last Post: 1st Mar 2006, 03:10 am
  3. Counting multiple blocks
    By craigp in forum AutoCAD Drawing Management & Output
    Replies: 3
    Last Post: 17th Jan 2006, 12:26 pm
  4. Lisp for counting blocks?
    By Bloke in forum AutoCAD Drawing Management & Output
    Replies: 4
    Last Post: 9th Oct 2003, 06:24 am

Bookmarks

Posting Permissions

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