+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Senior Member
    Using
    Mechanical 2008
    Join Date
    Feb 2006
    Location
    England (Leeds)
    Posts
    287

    Default Need lisp to Align text to middle center of a box/rectangle?

    Registered forum members do not see this ad.

    I'm after a lisp that will align all text I select to the middle center of the rectangle the text is in.

    Is there a way to do this?
    Ste G
    Director
    UK-CAD Solutions Ltd.
    UKCADS@googlemail.com

  2. #2
    Senior Member
    Using
    Mechanical 2008
    Join Date
    Feb 2006
    Location
    England (Leeds)
    Posts
    287

    Default

    Any ideas anyone?

    Thanks.
    Ste G
    Director
    UK-CAD Solutions Ltd.
    UKCADS@googlemail.com

  3. #3
    Banned Alan Cullen's Avatar
    Using
    Map 3D 2009
    Join Date
    Jun 2006
    Location
    Cairns, Queensland, Australia
    Posts
    4,181

    Default

    Pretty hard one to answer. It will involve picking the centre point of every box. That will not make it very efficient.

  4. #4
    Super Member GE13579's Avatar
    Computer Details
    GE13579's Computer Details
    Operating System:
    Windows XP
    Computer:
    Fujitso Siemens
    RAM:
    3.4Ghz
    Monitor:
    Samsung 19" TFT
    Using
    Mechanical 2009
    Join Date
    Feb 2007
    Location
    North East England
    Posts
    1,454

    Default

    You can't just select all the text and set the justification in the Properties box?

  5. #5
    Forum Deity NBC's Avatar
    Using
    AutoCAD 2009
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Posts
    2,109

    Default

    Quote Originally Posted by Ste1978 View Post
    I'm after a lisp that will align all text I select to the middle center of the rectangle the text is in.

    Is there a way to do this?
    you could always delete all the current rectangles, use the Express Tools command TCIRCLE to redo rectangles.
    that will automatically centre a rectangle around the text

  6. #6
    Banned Alan Cullen's Avatar
    Using
    Map 3D 2009
    Join Date
    Jun 2006
    Location
    Cairns, Queensland, Australia
    Posts
    4,181

    Default

    But then you still have to move the surround plus text back into position? So once again, not very efficient.

  7. #7
    Senior Member
    Using
    Mechanical 2008
    Join Date
    Feb 2006
    Location
    England (Leeds)
    Posts
    287

    Default

    Quote Originally Posted by NBC View Post
    you could always delete all the current rectangles, use the Express Tools command TCIRCLE to redo rectangles.
    that will automatically centre a rectangle around the text
    I thought of this but I have a lot of text all with different alignments placed on a drawing (with no snap on Grrrr!), so I have to retype the text with snap on and put into a table.

    I seem to spend most of my time correcting peoples incompetent AutoCAD techniques!

    EDIT: Actually I have an idea....


    *ponders*
    Ste G
    Director
    UK-CAD Solutions Ltd.
    UKCADS@googlemail.com

  8. #8
    Forum Deity
    Using
    Civil 3D 2008
    Join Date
    Sep 2006
    Location
    Pittsburgh, PA, USA
    Posts
    3,581

    Default

    Quote Originally Posted by Ste1978 View Post
    I seem to spend most of my time correcting peoples incompetent AutoCAD techniques!
    You too, huh? I just love it when we get dwgs from architects, job security...

  9. #9
    Senior Member
    Using
    Mechanical 2008
    Join Date
    Feb 2006
    Location
    England (Leeds)
    Posts
    287

    Default

    Quote Originally Posted by lpseifert View Post
    You too, huh? I just love it when we get dwgs from architects, job security...
    LOL - so you're a contractor too I guess?
    Ste G
    Director
    UK-CAD Solutions Ltd.
    UKCADS@googlemail.com

  10. #10
    Forum Deity
    Using
    Civil 3D 2008
    Join Date
    Sep 2006
    Location
    Pittsburgh, PA, USA
    Posts
    3,581

    Default

    Registered forum members do not see this ad.

    Close, Site/Civil. Too often we get site layouts from others, they might have well used crayons.

Similar Threads

  1. align several text to several location
    By motee-z in forum AutoLISP, Visual LISP & DCL
    Replies: 4
    Last Post: 19th Oct 2007, 11:17 pm
  2. Middle button....in LISP
    By pefi in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 22nd Jul 2007, 11:24 pm
  3. text align command
    By brassworks in forum AutoCAD Drawing Management & Output
    Replies: 5
    Last Post: 21st Jun 2007, 05:15 pm
  4. Replies: 0
    Last Post: 6th Sep 2006, 09:19 am
  5. How to draw Rectangle: Center-Full Base-Full Height?
    By LihtiumOverdosE in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 26th Oct 2005, 07:00 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