Results 1 to 5 of 5

Thread: Text align lisp - modify for mtext

  1. #1
    Active Member beardking's Avatar
    Join Date
    2009-07
    Posts
    82

    Default Text align lisp - modify for mtext

    I have a lisp that I've been using for years with dtext that allows me to align multiple strings of text along an x or y coordinate. In the past few months I've been using Mtext more and more (never liked it, but it's becoming more commonplace around my office) and unfortunately, this lisp doesn't work with Mtext. I was wondering if anyone out there would know how to modify this routine to work with Mtext or would know of another lisp that does the same thing. It drives me nuts to see strings of text placed haphazardly on a detail and I miss being able to use this lisp. I'll try attaching it for others to work with.

    Thanks in advance,
    KK
    Attached Files Attached Files

  2. #2
    AUGI Addict alanjt's Avatar
    Join Date
    2008-02
    Posts
    1,073

    Default Re: Text align lisp - modify for mtext

    Give this a try. I'm in the process of rewriting portions (better functionality, works better with curves, etc.) but you are more than welcome to it.
    It will allow you to select virtually any object (nested also allowed) for angle, or you can specify the angle, then you select as many blocks, text, mtext, multileaders and they will rotate along defined angle.
    I know I've posted it here more than once, but I don't feel like searching for a link, so here it is.
    Hope it helps. I know once it was initially finished, my life got a lot easier.
    Last edited by alanjt; 2010-06-03 at 02:48 PM.

  3. #3
    Active Member beardking's Avatar
    Join Date
    2009-07
    Posts
    82

    Default Re: Text align lisp - modify for mtext

    I gave this a try, but it seems more for matching the rotation of something rather than aligning the text along an x or y coordinate. Unless I'm missing something.

  4. #4
    AUGI Addict alanjt's Avatar
    Join Date
    2008-02
    Posts
    1,073

    Default Re: Text align lisp - modify for mtext

    Quote Originally Posted by kkimberlin View Post
    I gave this a try, but it seems more for matching the rotation of something rather than aligning the text along an x or y coordinate. Unless I'm missing something.
    I'm sorry, I completely misread your post.
    Try this:
    http://www.theswamp.org/index.php?to...7503#msg327503

  5. #5
    Active Member beardking's Avatar
    Join Date
    2009-07
    Posts
    82

    Default Re: Text align lisp - modify for mtext

    That was perfect. I liked the one without the dialog box better, and it is now part of my start up suite. Thank you very much.

Similar Threads

  1. Replies: 9
    Last Post: 2012-02-27, 07:50 PM
  2. LISP from AEC-Curve Text to MText or Regular Text
    By BoarsNest01 in forum AutoLISP
    Replies: 7
    Last Post: 2010-06-03, 02:46 PM
  3. Replies: 2
    Last Post: 2006-04-25, 12:33 PM
  4. Lisp to extract and add numbers from text/mtext string
    By cblendermann.91943 in forum AutoLISP
    Replies: 26
    Last Post: 2005-08-18, 03:25 PM

Posting Permissions

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