Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

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

Status
Not open for further replies.

proctorLed

Industrial
Jan 11, 2008
1
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
 
Replies continue below

Recommended for you

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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor