×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Is there anyway to get a count from a line type?

Is there anyway to get a count from a line type?

Is there anyway to get a count from a line type?

(OP)
I'm trying to see if it's at all possible to elevate the tedious task of having to hand count the number of leds for each letter in a sign.

currently, they import a vectorized image into auto cad and select a custom line type and hand draw using this line type where the leds are to be placed in each letter.  (e.g. linetype looks like:  --LED--LED--LED--).

I've been searching for a way to count the number of the LEDs (number of time the word LED occurs in the line type) used in a letter and have not found a solution. I had hope when I discovered that it might be possible to insert a block into the line type; however, I found out that I had to explode it in order to have it save as a shape file. I wanted to use blocks because I learned how easy they are to count using bcount. Perhaps there's another type of object (e.g. point, letter ... etc. that I can insert into the line type that auto cad will be able to count?

Do you know if there's anyway for me to get any kind of count in a line type? Another idea I had would be to somehow replace each word "LED" after they draw the lines out w/ blocks. It seems like there should be some way to say, "give me a count of all the occurrences of the word "LED".

I'm hoping you can help give me some kind of ideas, plug-ins or even auto lisp script that performs a similar task that you can direct me to? Maybe this capability is available on a newer version?

Thank you,
Proc

RE: Is there anyway to get a count from a line type?

The length of the line comnbined with the LTScale and knowledge of the special linetype definition should allow you to calculate the number of LED words.  For instance, if the word LED takes up half the length of each line segment and the line is 2 units long and the LTScale is 1.0 then the number of LED words should be 4.  You will have to round up, but that should be it.  Try a few lines and determine the relationship between length, scale and number of LEDs.  After that, LISP or VBA will easily make you a list of the line lengths and their count.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources