+ Reply to Thread
Results 1 to 8 of 8

Thread: Linetype help

  1. #1
    Full Member
    Computer Details
    JamyB's Computer Details
    Operating System:
    Vista at work, 7 at home
    Computer:
    Built-up
    CPU:
    Intel Core Duo E8500 3.17 GHz
    RAM:
    8.00 GB
    Graphics:
    GeForce 9500 GT 512 MB
    Primary Storage:
    3 hard drives - 465 GB total.
    Monitor:
    Samsung 24" widescreen LCD
    Using
    AutoCAD 2008
    Join Date
    Mar 2010
    Location
    Montreal
    Posts
    27

    Default Linetype help

    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!

  2. #2
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,639

    Default

    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.

  3. #3
    Full Member
    Computer Details
    JamyB's Computer Details
    Operating System:
    Vista at work, 7 at home
    Computer:
    Built-up
    CPU:
    Intel Core Duo E8500 3.17 GHz
    RAM:
    8.00 GB
    Graphics:
    GeForce 9500 GT 512 MB
    Primary Storage:
    3 hard drives - 465 GB total.
    Monitor:
    Samsung 24" widescreen LCD
    Using
    AutoCAD 2008
    Join Date
    Mar 2010
    Location
    Montreal
    Posts
    27

    Default

    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.

  4. #4
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,639

    Default

    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.

  5. #5
    Full Member
    Computer Details
    JamyB's Computer Details
    Operating System:
    Vista at work, 7 at home
    Computer:
    Built-up
    CPU:
    Intel Core Duo E8500 3.17 GHz
    RAM:
    8.00 GB
    Graphics:
    GeForce 9500 GT 512 MB
    Primary Storage:
    3 hard drives - 465 GB total.
    Monitor:
    Samsung 24" widescreen LCD
    Using
    AutoCAD 2008
    Join Date
    Mar 2010
    Location
    Montreal
    Posts
    27

    Default

    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.

  6. #6
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2013
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,639

    Default

    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.

  7. #7
    Senior Member edwinprakoso's Avatar
    Computer Details
    edwinprakoso's Computer Details
    Operating System:
    Windows 7 Home Premium
    Computer:
    Sony Vaio T11
    RAM:
    6 GB
    Graphics:
    Intel HD4000
    Using
    AutoCAD 2013
    Join Date
    Nov 2009
    Location
    Jakarta, Indonesia
    Posts
    282

    Default

    If you have express tools installed, you can use MKLTYPE
    Edwin Prakoso
    cad-notes.com

    The work doesn't matter if it's not built

  8. #8
    Forum Deity
    Using
    Civil 3D 2013
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    3,798

    Default

    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
     )              
    )

Similar Threads

  1. New Linetype
    By Eatonpcat in forum AutoCAD General
    Replies: 3
    Last Post: 1st Dec 2009, 06:15 pm
  2. linetype
    By rookie37 in forum AutoCAD General
    Replies: 1
    Last Post: 28th Aug 2008, 08:39 am
  3. New linetype
    By cadmench in forum AutoCAD Beginners' Area
    Replies: 0
    Last Post: 15th Jul 2008, 06:00 pm
  4. Linetype and Linetype Scale!
    By Penfold in forum AutoCAD Drawing Management & Output
    Replies: 10
    Last Post: 29th Oct 2007, 11:45 pm
  5. linetype
    By happyunited in forum AutoCAD Drawing Management & Output
    Replies: 15
    Last Post: 20th Jun 2007, 08:59 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts