JamyB Posted November 2, 2010 Posted November 2, 2010 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! Quote
rkmcswain Posted November 2, 2010 Posted November 2, 2010 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. Quote
JamyB Posted November 2, 2010 Author Posted November 2, 2010 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. Quote
rkmcswain Posted November 2, 2010 Posted November 2, 2010 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. Quote
JamyB Posted November 2, 2010 Author Posted November 2, 2010 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. Quote
rkmcswain Posted November 2, 2010 Posted November 2, 2010 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. Quote
edwinprakoso Posted November 4, 2010 Posted November 4, 2010 If you have express tools installed, you can use MKLTYPE Quote
BIGAL Posted November 8, 2010 Posted November 8, 2010 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 ; 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 ) ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.