Results 1 to 3 of 3

Thread: Count blocks in a VB script

  1. #1
    Join Date
    Login to Give a bone

    Question Count blocks in a VB script

    I'm not that familiar with VB script.

    Can I count blocks (and mvblocks) from there? I want to do this as part of a formula in a property set, or in a schedule.


    Kim M.

  2. #2
    The Silent Type RobertB's Avatar
    Join Date
    Seattle WA USA
    Login to Give a bone

    Default Re: Count blocks in a VB script

    No, you cannot do that.

    But if you are using property set data, why aren't you simply using the QTY column in ACA/MEP schedules?
    R. Robert Bell
    Design Technology Manager
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  3. #3
    I could stop if I wanted to
    Join Date
    Login to Give a bone

    Default Re: Count blocks in a VB script

    no not in the formula in a property set.

    But you can use vba to count the block (and mvblocks) and fill in the property set data(that you def.) with the count.

    With the MvBlock count MvBlocks and then up date the MvBock Styles Defintions Qty Property(this you will need to def.). But with blocks you will have to count the blocks and then up data the Qty Property(this you will need to def.) for each blocks.

    The Vba program will need to run to up date the count if it change.

    We use a program that get lite and vent form the door and windows total it by rooms and set the lite and vent property for the space in each rooms to the total. This is one thing that AutoDesk should have done.
    update to 2011
    I am using ADT 2007 08/06/2008

    PS. If you use any Code I post or Down Load Attachment I would like to know if it was helpful. So please post reply to this thread, on how you use the code or down load. Thank You

Similar Threads

  1. VBA block count script in property set definition?
    By kmelchor in forum VBA/COM Interop
    Replies: 2
    Last Post: 2009-09-04, 02:42 PM
  2. Ability to count blocks
    By schrodingerscat in forum DWG TrueView - Wish List
    Replies: 0
    Last Post: 2008-10-14, 05:36 AM
  3. Count No. of Blocks
    By kwong in forum AutoCAD Tables
    Replies: 7
    Last Post: 2007-08-15, 02:21 PM
  4. Replies: 1
    Last Post: 2007-01-05, 01:38 AM

Posting Permissions

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