Are you restricting this linetype to using font characters?
This would be fairly trivial to do using a shape instead.
But there are pros and cons to each approach.

Registered forum members do not see this ad.
I havent figured out the exacly how to create a linetype, so hopefully someone can help me with this one.
I'm trying to create something that looks like this :
_/‾\_/‾\_/‾\_/‾\_/‾\_/‾\_/‾\
In words : Low line, solidus (dash), overline, reverse solidus (dash).
all of theses symboles are found in CAD. I've manage to edit the linetype file, but nothing comes out right.
Here's the part of the file i've created. I can't get the spacing right.
*PONTAGE, Pontage _/‾\_/‾\_/‾\_/‾\_/‾\_/‾\_/‾\
A,.125,.01,.125,.01,["_/ ̅ \",STANDARD,S=.1,R=180,X=-0.1],-.125
Who ever manages to do this for me gets 100 points!




Are you restricting this linetype to using font characters?
This would be fairly trivial to do using a shape instead.
But there are pros and cons to each approach.

What kind of shapes can I use that resembles this? Can I create a shape?
Also, txt.shx is giving me some '?' throughout the line, but Arial seems to work.




Complex linetype can contain font characters or shapes. It's explained in the customization guide.
Yes, you can create your own shapes and use them by themselves or in linetype definitions.
The downside is that the shape definition is not embedded in the drawing which means the compiled shape file (.SHX) must go where ever the DWG goes.
The downside to using fonts is that linetypes reference a text style, not a font. So if someone changes the height or font of the textstyle used, the linetype may appear wrong.

Well I figured out how to do it with using fonts. And your right I need the text style in the drawing for it to work.
As for the shapes, I've located the ltypeshp.shx where the othere linetypes shapes are located, but I still dont have a clue how to create one.
The linetype with the fonts doesn't look the greatest, so i'll keep searching on how to do shapes.
Thanks.




Shape and shape file creation is also documented in the customization guide.
If you have Express Tools, you can use the MKSHAPE command to help you create the shape file.
The stock acad.lin file contains some shape based linetypes, you can use one of those as a guide for your .LIN syntax.
If you have express tools installed, you can use MKLTYPE




Registered forum members do not see this ad.
For that shape I would use a polyline you can create very complex line styles continuous ones like yours are a bit easier specially when straight lines, heres a sample
Code:; routine to set N as number of pline segments as a factor of 90 mm. ; 90 mm 25 arc's with straights (if (= in_sul 1) (progn (setq N (fix (/ (distance p1 p9) 90.0))) (setq d1 (- insul_ht 25.0)) (setq d2 25.0) (setq d3 (- d1 25)) (setq d4 40.0) (setq p2 (polar p1 (+ 1.5708 ang1) d1)) (command "pLINE" p2 "w" 0.0 0.0) (setq m 0) (while (< m N) (setq p3 (polar p2 ang1 d2)) (setq p4 (polar p3 ang1 d2)) (setq p5 (polar (polar p3 ang1 20)(+ ang1 4.71239) d3)) (setq p6 (polar p5 ang1 d2 )) (setq p7 (polar p6 ang1 d2)) (setq p8 (polar p4 ang1 d4)) ; now put pts 3,4,5,6 (command "a" "ce" p3 "a" "-180" "l" p5 "a" "ce" p6 p7 "l" p8) ; parallel lines now drawn (setq m (+ 1 m)) (setq p2 p8) ) (command "") ; ends pline ) )
Bookmarks