Author Topic: Keeping count  (Read 4148 times)

0 Members and 1 Guest are viewing this topic.

RebarDWG

  • Guest
Keeping count
« on: January 07, 2005, 12:31:25 AM »
is there a way in autocad that we can keep track of how many instances a piece of text (or attribute) is on a drawings?

My problem is this.  I have to label things on my drawing. P1, P2, P3, P4, etc etc.   Later when i'm finished, i want autocad to tell me how many of each i have.

thanks.

Bob

  • Guest
Keeping count
« Reply #1 on: January 07, 2005, 03:12:52 AM »
Could you use the filter command on the properties dialog box?

Find text containing "P1" etc.

whdjr

  • Guest
Keeping count
« Reply #2 on: January 07, 2005, 08:23:13 AM »
Are they attributes, text, or part of a block?
How are the textstrings related to the object? or are they?

CADaver

  • Guest
Keeping count
« Reply #3 on: January 07, 2005, 08:31:43 AM »
BCOUNT in express tools.

ELOQUINTET

  • Guest
Keeping count
« Reply #4 on: January 07, 2005, 09:01:59 AM »
i downloaded a program a long time ago called living legend which created a graph based of the total of attributes and changed automatically if you erased an instance. do a search online

ELOQUINTET

  • Guest
Keeping count
« Reply #5 on: January 07, 2005, 09:10:01 AM »
a quick and easy way if it's text might be to do a find and replace and it will show you the total of occurances just be sure you undo before proceeding. there's lots of ways

PDJ

  • Guest
Keeping count
« Reply #6 on: January 07, 2005, 11:58:17 AM »
OK, maybe I'm missin somethin here but, if you're labeling things P1, P2, P3, P4  and you want to know how many there are, wouldn't the total be the last number you use??  In this case, P4??

ELOQUINTET

  • Guest
Keeping count
« Reply #7 on: January 07, 2005, 12:54:37 PM »
nope you're missing something  :wink:

RebarDWG

  • Guest
Keeping count
« Reply #8 on: January 07, 2005, 01:03:05 PM »
if i had 954 ea. P1, 432 ea. P2, and 12 ea. P3 scatter across 19 miles of roadway, i wanna know how many of each are on my drawing.

unfortunately,  my stinking bonus tools are broken,  i guess i'll just wait til my acad 2005 comes in.

ELOQUINTET

  • Guest
Keeping count
« Reply #9 on: January 07, 2005, 01:05:35 PM »
you never answered are these blocks with attributes or just textwe're talking about

RebarDWG

  • Guest
Keeping count
« Reply #10 on: January 07, 2005, 03:16:55 PM »
oh, sorry,  its just text, but i dont mind creating a block if i can set it up where it will update a schedule or something.

i guess my next question is.. is it possible to do that?  

I looked up the "living legend".  That's an awesome program.  But they want  $189 for it.  For those interested, you can find it at the caddepot.com

"LivingLegend creates beautiful, associative BOM's, schedules and symbol legends in seconds using automatic balloons and blocks. You may use the legend as a spreadsheet to view, create and modify attributes inside your blocks or item balloons. Blocks are automatically modified with the values in the legend when edited. "

ELOQUINTET

  • Guest
Keeping count
« Reply #11 on: January 07, 2005, 03:21:45 PM »
yeah i never ordered it because of the price but i tried it out works well. i still think the easiest solution for you would be to type in find then f1 in the top box and whatever in the bottom. then select replace all and it will tell you how many occurances were found and replaced. write that number down then undo and move to the next. seems simple enough unless i'm missing something?

RebarDWG

  • Guest
Keeping count
« Reply #12 on: January 07, 2005, 03:25:44 PM »
yup easy enough, but setting up a schedule that will update automatically will save me countles key strokes.

PDJ

  • Guest
Keeping count
« Reply #13 on: January 07, 2005, 04:00:27 PM »
Would you consider putting each different type on it's own layer?? Then you could use a selection set filter, click on the P1 and find out how many there are..

Actually, using the find command will tell you how many occurances there are of P1 on the drawing as well.  It'll even zoom to each one individually if you need it to.

ELOQUINTET

  • Guest
Keeping count
« Reply #14 on: January 07, 2005, 04:23:17 PM »
so it's not finding out the amount that is your biggest concern it is the automated schedule. i suspect that anything involving automation is not easy to write and thus will not be offered for free. i've been proved wrong in the past though if anyone can or has done it they are here.

ELOQUINTET

  • Guest
Keeping count
« Reply #15 on: January 07, 2005, 04:26:57 PM »
rebar i haven't tried this but check this one out $25 or do a search for bill of materials

http://www.apmatics.com/quickbom.htm

RebarDWG

  • Guest
Keeping count
« Reply #16 on: January 09, 2005, 12:52:03 PM »
dan, thanks for the link, i dont know if those guys know it or not, but you can copy from excell and paste straight into autocad.  It took me awhile but i got it working flawlessly and use it every chance i get.

Here's my new  problem.  I used the find and replace to try and find the total number of instances "P1" is on my drawing.  It doesnt tell me anywhere how many it changed.

I tried doing a MOVE, PREVIOUS to see how many items it selected, but it gives me a total of all the text it went thru looking for "P1"

So instead of telling me 120 items, it's telling me 544 items.  


right now i'm using the bonus tool's FIND AND REPLACE.  Is there another command i can use to to globally change text?

RebarDWG

  • Guest
Keeping count
« Reply #17 on: January 09, 2005, 01:01:04 PM »
i have another problem.  

According to the FIND AND REPLACE, P1 and P10 are the same text.  All the P10's get changed too.

That's a very dangerous tool.  I'll figure out a way around it, I just wanted you guys to know.  =)

MikePerry

  • Guest
Keeping count
« Reply #18 on: January 09, 2005, 01:14:01 PM »
Hi

Within the Options area of the Find command take a look at the check box "Find whole words only".

Ticking the above box will stop the behaviour you describe in your above post.

Have a good one, Mike

RebarDWG

  • Guest
Keeping count
« Reply #19 on: January 09, 2005, 02:17:39 PM »
AIYA, that must be a feature not present in R14.  Ok, i give up on this topic.

thanks ev1

whdjr

  • Guest
Re: Keeping count
« Reply #20 on: January 10, 2005, 10:24:03 AM »
Quote from: RebarDWG
is there a way in autocad that we can keep track of how many instances a piece of text (or attribute) is on a drawings?

My problem is this.  I have to label things on my drawing. P1, P2, P3, P4, etc etc.   Later when i'm finished, i want autocad to tell me how many of each i have.

thanks.


Try this:

To run : (c:ctext "string_of_text") where "string_of_text" is your number in quotes.

Code: [Select]
(defun c:ctext (num / ss)
  (if (setq ss (ssget "X"
     (list '(0 . "TEXT")
   '(-4 . "<XOR")
   (cons 1 num)
   (cons 1 (strcase num))
   '(-4 . "XOR>")
     )
      )
      )
    (alert
      (strcat "You have "
     (itoa (sslength ss))
     " of the selected text. "
      )
    )
    (alert "That text string is not found.")
  )
  (princ)
)

CADaver

  • Guest
Keeping count
« Reply #21 on: January 10, 2005, 10:49:25 AM »
Quote from: RebarDWG
AIYA, that must be a feature not present in R14.  Ok, i give up on this topic.

thanks ev1
ADD the following character to the find and replace fields FIND P1<space> and REPLACE with P10<space>

RebarDWG

  • Guest
Keeping count
« Reply #22 on: January 10, 2005, 10:49:38 AM »
whdjr, that thing works perfect, it even put the text into the selection set incase i need to move or copy it somewhere else.

thanks a million.

whdjr

  • Guest
Keeping count
« Reply #23 on: January 10, 2005, 11:11:44 AM »
Your welcome :D

ELOQUINTET

  • Guest
Keeping count
« Reply #24 on: January 10, 2005, 12:38:17 PM »
i still reccomend an upgrade  :wink:

RebarDWG

  • Guest
Keeping count
« Reply #25 on: January 10, 2005, 01:00:01 PM »
yuppers, we still have ACAD 2005 coming in, but this info is still a keeper.