Display full version of the post: Tip#7147

nameci
13.01.2010, 05:27
Hi All,

I downloaded tip#7147 which is really good. It allows the user to create line-types with text in it. The problem is that the line on the end of the text goes over the text.

Does anyone know how to fix this??

Thanks in advance,

nameci nameci2010-01-13 05:27:50

CarlB
13.01.2010, 06:27
Can you post the ".lin" file code?

Vladimir Michl
13.01.2010, 07:36
What was the text to be embedded? Extra long, extra short? Did you use a local UCS? Was it in a metric or imperial drawing?
 
We would be glad to fix the LTFly code.

nameci
14.01.2010, 02:07
Hi Vladimir,

I tried different text lengths (GAS, TEST, & PROPERTYLINE). In each case at the end of the text the line extended into the back part of the text. I was in top view UCS world. I use AutoCAD MEP Architecture 2010 and I was in metric template.

I really like this LTFLY function and would really appreciate it if you could work out the kinks.

Also, I don't know near enough as far as creating lisp routines but I am slowly teaching myself.

Thanks in advance,

nameci

nameci
14.01.2010, 02:12
Hi CarlB,

It was a .vlx file. sorry, but I don.t know enough about lisp and vlx to post the .lin????

I responded to Vladimir and he is going to look in to it for me.

Thanks,
nameci

CarlB
14.01.2010, 03:27
OK, I has assumed that "ltfly" would modify the "acad.lin" to add a definition for the new linetype, but it may not work that way.
 
I tried out the program, and got the results you mention if the style width factor was set to less than 1. If set to greater than 1, an excessive gap after the text occured. So my guess at the problem is that the routine probably determines a gap based on the style width factor but the linetype uses a width of 1.

Vladimir Michl
14.01.2010, 07:38
Thanks, I can see it now. Linetype definition doesn't work with width factors so the text width was not computed properly.
 
It is fixed now in th LTFly version 1.1.
 
LTFly doesn't create .LIN files - the definition is done directly in the drawing. But you can export it using LinOut (a separate tool).

nameci
15.01.2010, 01:36
Hi Vladimir,

Thanks so much for fixing the LTFLY command! I just tried it and it works great.

I really enjoy this site and I have got a lot from it. Sorry about not uploading any blocks recently, but my new job has taken up most of my time. I will try to contribute some more dynamic blocks soon.

Thanks again,
nameci