Jump to content

Recommended Posts

Posted

Is there an option that you can convert multiple single line text into multiline text at the same time but still keep them seperate and from merging into one multline text group?

Posted

This can be done by "convert text to mtext" from Express tools menu ( Haven't used 2010)

Posted (edited)

Try this... will only work if the Express tools are installed

(defun c:test () 
 (vl-load-com)
 (setq ss1 (ssget '((0 . "TEXT")))
       idx -1)
 (repeat (sslength ss1)
   (setq ename (ssname ss1 (setq idx (1+ idx))))
   (vl-cmdf "_txt2mtxt" ename "")
   )
 )

Edited by lpseifert
Posted

alias is txt2mtxt or the command is in the express tools/text. It will always group them together. You have to repeat the command. Thats why I love the right click options. Options/user preferences/right click customizations.

Posted
Try this... will only work if the Express tools are installed

(defun c:test () 
 (vl-load-com)
 (setq ss1 (ssget '((0 . "TEXT")))
       idx -1)
 (repeat (sslength ss1)
   (setq ename (ssname ss1 (setq idx (1+ idx))))
   (vl-cmdf "_txt2mtxt" ename "")
   )
 )

 

Do i just type this straight into the command space?? And then do i retry txt2mtxt??

Posted

cut and paste the following code into Notepad. Save it as T2M.lsp in acad's Support folder.

Then enter (load "t2m") at the command line.

To invoke the command enter T2M at the command line

 

You may want to read this... http://www.cadtutor.net/forum/showthread.php?1390-How-to-use-the-LISP-routines-in-this-archive

 

(defun c:T2M ()
(vl-load-com)
(setq ss1 (ssget '((0 . "TEXT")))
      idx -1)
(repeat (sslength ss1)
 (setq ename (ssname ss1 (setq idx (1+ idx))))
    (vl-cmdf "_txt2mtxt" ename "")
    )
  )

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...