adrath Posted October 22, 2013 Posted October 22, 2013 We are currently working on a very large master development plan submittal here at work. As part of the MDP, we are expected to deliver quantities calculations to the client. I don't particularly feel like going through our entire proposed subdivision and counting up water fittings and whatnot. I am working on a dynamic block (attached in 2012 file format) that has visibility states for all of the different water fittings that we will be using for this project. Is it possible to use either a lookup parameter or a block properties table to produce a quantities count, so to speak? I.e., to somehow get a count of all of the instances of this block in a particular drawing and how many instances are in what visibility state? So this table would tell you 1/32 bend: 15, 1/4 bend: 35, etc. It seems like I read something a while ago about how to do this but I can't find it now. Thanks! Water Fittings Block.dwg Quote
steven-g Posted October 22, 2013 Posted October 22, 2013 There are no doubt more methods, but attribute extraction works, you would need to add an attribute into your block that reads the visstate, and then you can run the ATTEXT command, it will need an extraction template file which is just a plain text file, and it asks you at a dialogue box to give the location of this file, select all the blocks (or select everything) and it outputs a list in a text file with all the blocks and what there visstate is. A program like excel can easily be set up to give you a count of everything. ATTEXT will also pull all the block information from drawings that are included in X-ref's which can be useful. Attached is a drawing with an attribute added to the block, and a very simple extract template file (you can get a lot more info from a block if you want) extract.txt Water Fittings Block.dwg Quote
rkmcswain Posted October 22, 2013 Posted October 22, 2013 This may work for you: http://lee-mac.com/dynamicblockcounter.html Quote
adrath Posted October 22, 2013 Author Posted October 22, 2013 Thanks! Both of these are really good. I'll have to play around a little with these. Quote
BIGAL Posted October 23, 2013 Posted October 23, 2013 Dataextract is another command a newer version of Attext Quote
adrath Posted October 23, 2013 Author Posted October 23, 2013 BIGAL, I found that command after posting this yesterday and played around with it a bit. Couldn't get it to do exactly what I wanted though. I may just need to fiddle with it a bit more. Thanks! Quote
steven-g Posted October 23, 2013 Posted October 23, 2013 Dataextract is another command a newer version of Attext Not so much newer, more like available, LT users don't have it (not a problem here, I just thought I'd mention it in case any LTer's look in) Quote
Recommended Posts
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.