Results 1 to 3 of 3

Thread: Count blocks in a VB script

  1. #1
    Member
    Join Date
    2002-06
    Posts
    39
    Login to Give a bone
    0

    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.

    Thanks,

    Kim M.
    Kmelchor

  2. #2
    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 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
    Stantec
    Opinions expressed are mine alone and do not reflect the views of Stantec.

  3. #3
    I could stop if I wanted to
    Join Date
    2002-02
    Location
    Kansas
    Posts
    487
    Login to Give a bone
    0

    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.
    Note:
    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
  •