+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Forum Newbie
    Using
    Map 3D 2008
    Join Date
    Nov 2010
    Posts
    5

    Default I need help tweaking this swale linetype

    Swales have always been finicky to draw with the proper annotation and it seems to be a common inquiry of forum users to find a code string that creates one automatically. I got sick of waiting and searching so I developed a code string that draws/repeats the squiggly line and triangle arrow annotation for me to make things faster and easier. It works (kind of) but it draws a continuous line over the swale symbols almost like a strike-through in MS Word (see attached image). I wouldn't mind it so much if it was a standard centreline symbol but my preference is for the "line" type to just be the repeating symbol and not have a line at all.

    swale.jpg

    Here is the code I've come up with (it is scaled to draw properly in inches--for metric scale the ltscale to 0.03937):

    *SWALE,Swale --> --> --> -->
    A,0,10,[SWALESYMBOL,swalesymbol.shx,x=1,s=1],65

    I've saved it into my acad.lin file along with my swalesymbol.shx file which is just the squiggle and the arrowhead. When I draw a line or polyline using the linetype though I still get the solid line. Perhaps someone can post a reply that takes my code and tweaks it?

  2. #2
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2015
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    39,466

    Default

    Could you post you swalesymbol.shx file? It might help to have it for troubleshooting purposes.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge! I've gone over to the dark side.

  3. #3
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2015
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    39,466

    Default

    Nevermind. I mocked one up myself using the MKSHAPE and MKLTYPE Express Tools commands. This is what my linetype definition file looks like. I do not get the continuous straight line between my symbols.

    *SWALE,Swale -->-->-->-->
    A,0,-.001851,[SWALESYM, SwaleSym,y=.00009,s=1],-.488335
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge! I've gone over to the dark side.

  4. #4
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    3,481

    Default

    Quote Originally Posted by JAM View Post
    *SWALE,Swale --> --> --> -->
    A,0,10,[SWALESYMBOL,swalesymbol.shx,x=1,s=1],65
    It draws a solid line because you have no "Pen up" instructions in your line type. Try putting a - (minus sign) in front of the 10 and the 65 numbers in your code.

    I can't check it out myself, because I would need your shape to do so.

  5. #5
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2015
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    39,466

    Default

    I totally missed the minus signs. Thanks for pointing that out eldon.
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge! I've gone over to the dark side.

  6. #6
    Forum Newbie
    Using
    Map 3D 2008
    Join Date
    Nov 2010
    Posts
    5

    Default

    Thanks guys. I was totally blundering through the code and don't have any reference for what any of the numbers do. Slowly through trial and error I got to where I was yesterday. Is there anywhere I can find what each input does to the line? It would definitely help in the future.

  7. #7
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2015
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    39,466

    Default

    Work with Linetypes - Part I by Ralph Grabowski - Lesson 15

    http://www.upfrontezine.com/tailor/tailor15.htm

    Part 2 - Lesson 16

    http://www.upfrontezine.com/tailor/tailor16.htm
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge! I've gone over to the dark side.

  8. #8
    Forum Newbie
    Using
    Map 3D 2008
    Join Date
    Nov 2010
    Posts
    5

    Default

    Very helpful. Cheers!

  9. #9
    Forum Deity Organic's Avatar
    Discipline
    Civil
    Using
    AutoCAD 2015
    Join Date
    Feb 2009
    Posts
    2,197

    Default

    Registered forum members do not see this ad.

    The 'AutoCad Bible' book also covers custom line types (and a lot of other things) nicely.

Similar Threads

  1. linetype ?'s
    By RONK79 in forum AutoCAD General
    Replies: 5
    Last Post: 22nd Jun 2011, 07:34 pm
  2. Replies: 4
    Last Post: 18th Jan 2011, 12:06 am
  3. Help tweaking lsp
    By Ste1978 in forum AutoLISP, Visual LISP & DCL
    Replies: 2
    Last Post: 14th Apr 2009, 10:28 am
  4. new linetype
    By acemasi in forum AutoCAD General
    Replies: 3
    Last Post: 16th Sep 2008, 05:14 pm
  5. Linetype and Linetype Scale!
    By Penfold in forum AutoCAD Drawing Management & Output
    Replies: 10
    Last Post: 29th Oct 2007, 11:45 pm

Tags for this Thread

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