Author Topic: Keeping count  (Read 4146 times)

0 Members and 1 Guest are viewing this topic.

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.