Custom Text Linetype with Unwanted Dots

Custom Text Linetype with Unwanted Dots

tpatchan
Observer Observer
797 Views
1 Reply
Message 1 of 2

Custom Text Linetype with Unwanted Dots

tpatchan
Observer
Observer

Hello,

 

I'm creating custom linetypes for demolition plans, which will be entirely text, such as ||||, XXXXXX, ///////. However, when I write the code for the custom linetype for these demo lines, shown below, CAD plots the lines of these linetypes with small dots between each letter in my linetype. The linetype codes and a screenshot are shown below. I've seen reference that every CAD linetype needs to start and end with either a line or a dot. Do you know of any way to revise the code to eliminate these dots? It would also be ideal for the text to be center justified with the lines, but this seems not to be the case for the "////" and "XXXX" lines. 


*DEMO1_LINE,DEMO1 line ||||||||||||||||||
A,0,-.1,["|",STANDARD,S=.2,U=0.0,X=-0.1,Y=-.05],-.1

*DEMO2_LINE,DEMO2 line //////////
A,0,-.1,["/",STANDARD,S=.2,U=0.0,X=-0.1,Y=-.05],-.1

*DEMO3_LINE,DEMO3 line XXXXXXXXXX
A,0,-.1,["X",STANDARD,S=.2,U=0.0,X=-0.1,Y=-.05],-.1

 

tpatchan_0-1738957489205.png

 

0 Likes
798 Views
1 Reply
Reply (1)
Message 2 of 2

Kent1Cooper
Consultant
Consultant

I would suggest using AutoCAD's included Shapes rather than Text inclusions, because there will be no effect on them if the Text Style called for gets assigned a different font, or if objects with the linetypes get pasted into a drawing with a different font for that Style.  And you have much better control over the positioning in relation to where the dots fall, again unaffected by the font with Text inclusions.

For example, TRACK1 is good for things like this:

 

*DEMO1_LINE,DEMO1 line |||||||||||||
A,0,[TRACK1,ltypeshp.shx,s=.5],-.75

*DEMO2_LINE,DEMO2 line / / / / / / / / / /
A,0,[TRACK1,ltypeshp.shx,s=.57735,r=-30],-.75

*DEMO3_LINE,DEMO3 line XXXXXXXXXX
A,0,[TRACK1,ltypeshp.shx,s=.57735,r=-30],.00001,[TRACK1,ltypeshp.shx,s=.57735,r=30],-1

 

which make these:

Kent1Cooper_0-1739024891376.png

You can fiddle with the spacing and rotation and sizes.  These have the overall width at 1 unit when the effective scale of the object is 1.  [So if you change the rotation(s), you should also change the Shape scale factor(s).]

For 3 (X's), if you can use them touching and at 45°, see the TWIST linetype definition >here<.

Kent1Cooper_1-1739024617063.png

Kent Cooper, AIA