Jump to content

Counting Blocks - BCOUNT/EATTEXT


Recommended Posts

Posted

Hi,

 

I'm trying to count blocks from someone elses drawings. If you double click the blocks and 'edit attributes' appears.

 

I have tried using the command BCOUNT and EATTEXT but it displays unknown command for each. Is it a case that you can't use these commands on 2009 LT, or perhaps it's just not possible to do it on the blocks the way I have descirbed them.

 

Any help will be appreciated.

 

Thanks

 

Sam

Posted

Is the QSELECT command available in AutoCAD LT? If the answer is yes this may help you to select items from drawing based on a user defined rule.

 

Regards,

Mircea

Posted

In LT you have to set up a template file to extract block information. One of the bits of information is a Block Count.

 

This bit of information from the web

 

Create an Attribute Extraction Template File

 

Before you extract attribute information, you must create an ASCII template file to define the structure of the file that will contain the extracted attribute information. The template file contains information about the tag name, data type, field length, and number of decimal places associated with the information you want to extract.

Each field in the template file extracts information from the block references in the drawing. Each line in the template file specifies one field to be written to the attribute extraction file, including the name of the field, its character width, and its numerical precision. Each record in the attribute extraction file includes all the specified fields in the order given by the template file.

The following template file includes the 15 possible fields. N means numeric, C means character, www means a 3 digit number for the total width of the field, and ddd means a 3 digit number representing how many numeric decimal places are to be displayed to the right of the decimal point.

BL:NAME Cwww000 (Block name)

BL:LEVEL Nwww000 (Block nesting level)

BL:X Nwwwddd(X coordinate of block insertion point)

BL:Y Nwwwddd(Y coordinate of block insertion point)

BL:Z Nwwwddd(Z coordinate of block insertion point)

BL:NUMBER Nwww000 (Block counter; the same for MINSERT)

BL:HANDLE Cwww000 (Block handle; the same for MINSERT)

BL:LAYER Cwww000 (Block insertion layer name)

BL:ORIENT Nwwwddd(Block rotation angle)

BL:XSCALE Nwwwddd(X scale factor)

BL:YSCALE Nwwwddd(Y scale factor)

BL:ZSCALE Nwwwddd(Z scale factor)

BL:XEXTRUDE Nwwwddd(X component of block extrusion direction)

BL:YEXTRUDE Nwwwddd(Y component of block extrusion direction)

BL:ZEXTRUDE Nwwwddd(Z component of block extrusion direction)

numericNwwwddd (Numeric attribute tag)

characterCwww000 (Character attribute tag)

The template file can include any or all of the BL: xxxxxxx field names listed, but must include at least one attribute tag field. The attribute tag fields determine which attributes, hence which blocks, are included in the attribute extraction file. If a block contains some, but not all, of the specified attributes, the values for the absent ones are filled with blanks or zeros, depending on whether the field is a character field or a numeric field.

© Copyright 2011 Autodesk, Inc. All rights reserved. Privacy Policy - Legal Notices & Trademarks

Posted

Thanks, QSELECT worked a treat.

 

Eldon, that went over my head but thatnks anyway

 

Sam

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...