+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Forum Newbie
    Using
    AutoCAD 2011
    Join Date
    Jul 2012
    Posts
    6

    Default custom line type with alternating text

    Registered forum members do not see this ad.

    Hi. How do I create a custome line type with alternating text as description like this:

    -------- - e -------- - (oh) -------- -------- e

    thanks!

  2. #2
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,004

    Default

    Please fill free to adjust this one to suit exactly your needs:
    Code:
    *ANDRE_LINE,Andre alternate line ---E----??----E----??----EE---
    A,.5,-.2,["E",STANDARD,S=.1,R=0.0,X=-0.1,Y=-.05],-.02,.5,-.2,["??",STANDARD,S=.1,R=0.0,X=-0.1,Y=-.05],-.1
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  3. #3
    Forum Newbie
    Using
    AutoCAD 2011
    Join Date
    Jul 2012
    Posts
    6

    Default

    Hi Mircea.
    After doing some adjustment on the linetype setting that you gave me this what I got:
    *ut-elec-oh-e,elec ovhd line ---e----oh----e----oh----e---
    A,9.5,-1,9.5,-.75,["e",STANDARD,S=2,R=0.0,X=-.05,Y=-.5],-1.75,9.5,-1,9.5,-1,1,-1,["(oh)",STANDARD,S=2,R=0.0,X=-0.5,Y=-.5],-5.5

    there's just one more dash missing before "e" just like the dash before "(oh) that I cannot add.
    please help.

    thanks,
    Paul

  4. #4
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,004

    Default

    Sorry, but I'm afraid that this is not possible since your definition already reached the limit of 12 allowed dash specifications.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  5. #5
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,004

    Default

    A possible workaround:
    Code:
    *ut-elec-oh-e,elec ovhd line ---e----oh----e----oh----e---
    A,9.5,-1,9.5,-.75,["-",STANDARD,S=2,R=0.0,X=-.05,Y=-1],-.01,[" e",STANDARD,S=2,R=0.0,X=-.05,Y=-.5],-2.7,-1,9.5,-1,["-",STANDARD,S=2,R=0.0,X=-0.5,Y=-1],-0.01,[" (oh)",STANDARD,S=2,R=0.0,X=-0.5,Y=-.5],-8
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  6. #6
    Forum Newbie
    Using
    AutoCAD 2011
    Join Date
    Jul 2012
    Posts
    6

    Default

    yes I think this is good enough. Thanks a lot! I appreciate it.
    God Bless.

  7. #7
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    3,004

    Default

    Registered forum members do not see this ad.

    Sound good. You're welcome!
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

Similar Threads

  1. Inverted Text in Custom Line Type
    By jgbgod in forum AutoCAD General
    Replies: 4
    Last Post: 15th May 2012, 01:56 pm
  2. Custom Line Type Questions
    By SanMiguel in forum AutoCAD Drawing Management & Output
    Replies: 21
    Last Post: 14th Apr 2011, 10:32 pm
  3. Custom Line Type
    By Efeezy in forum AutoLISP, Visual LISP & DCL
    Replies: 42
    Last Post: 10th May 2010, 08:55 pm
  4. Custom Line Type
    By MTS in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 3
    Last Post: 24th Oct 2008, 01:37 pm
  5. Custom line type help
    By DARYL in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 30th Sep 2008, 09:28 pm

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