+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Super Member
    Using
    not specified
    Join Date
    Feb 2006
    Posts
    606

    Default Can Lisp use mtext to make multi string mtext editor?

    Registered forum members do not see this ad.

    Can mtext command be place in a lisp loop to make
    a multistring mtext editor where the user can select a group
    of mtext and edit mtext strings form top text to bottem.
    I have not used the mtext very much I and I am not sure how
    it works. Maybe if I had a lisp routine to edit many mtext
    string with one selection I would use it more.
    any suggestions?

  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-4770K 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 2015
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,919

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by muck View Post
    Can mtext command be place in a lisp loop to make
    a multistring mtext editor where the user can select a group
    of mtext and edit mtext strings form top text to bottem.
    I have not used the mtext very much I and I am not sure how
    it works. Maybe if I had a lisp routine to edit many mtext
    string with one selection I would use it more.
    any suggestions?
    You can use the same function I posted in this thread, with one change.

    Change the word TEXT to MTEXT, or if you want it to work with both, change TEXT to *TEXT as shown here:

    Code:
    (defun c:foo ()
      (setq sset (ssget '((0 . "*TEXT"))) i 0)
      (repeat (sslength sset)
        (setq ent (ssname sset i))
        (command "._ddedit" ent "")
        (setq i (1+ i))
      )
      (princ)
    )
    This will loop through TEXT and/or MTEXT in the order selected.

Similar Threads

  1. mtext editor
    By cadam in forum AutoCAD General
    Replies: 7
    Last Post: 12th Jun 2009, 08:40 am
  2. Can Lisp use ddedit to make multi text editor
    By muck in forum AutoLISP, Visual LISP & DCL
    Replies: 3
    Last Post: 14th Dec 2006, 02:29 pm
  3. Mtext editor
    By boognish in forum AutoCAD General
    Replies: 2
    Last Post: 13th Jan 2006, 04:12 pm
  4. multi-layers in mtext
    By murrief in forum AutoCAD Drawing Management & Output
    Replies: 4
    Last Post: 6th May 2005, 05:04 pm
  5. MTEXT created in same MTEXT editor on different layers?
    By hyposmurf in forum AutoCAD General
    Replies: 2
    Last Post: 5th Sep 2003, 12:54 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