Results 1 to 4 of 4

Thread: Text or Attributes

  1. #1
    Member ablanchard's Avatar
    Join Date
    2002-12
    Posts
    21

    Default Text or Attributes

    In R14 I had a lisp program (ed.lsp) that would open the appropriate editor depending on if I picked text, mtext or attributes.

    I am now using LT2008 and alas no lisp allowed. I know you can use the double click on an object, but only if you have noun/verb turned on and I don't row my boat that way, if you know what I mean.

    I am thinking that this can be done in diesel. Below is the original lisp file.

    ;EDIT TEXT OBJECT, ATTRIBUTE, DIMENSION TEXT OR ATTRIBUTE
    ;DEFINITION
    ;ED.LSP (C)1998, By Peter Thomson.
    (defun C:ED (/ E ETYPE)
    (prompt "\nPick text object or attributed block to edit: ")
    (setq E (car (entsel)))
    (setq ETYPE (cdr (assoc 0 (entget E))))
    (cond
    ((or (eq ETYPE "TEXT")(eq ETYPE "MTEXT")(eq ETYPE
    "DIMENSION")(eq ETYPE
    "ATTDEF"))
    (COMMAND "DDEDIT" E)
    )
    ((eq ETYPE "INSERT")
    (command "ddatte" E)
    )
    )
    (princ)
    )
    ;End of progam
    (princ)

  2. #2
    I could stop if I wanted to sschwartz's Avatar
    Join Date
    2005-04
    Location
    Oakland County, Michigan
    Posts
    424

    Default Re: Text or Attributes

    I am sure the LT version is similar to the regular version, you shouldn't need to load an OLD useless lisp file to change text. All of these functions are already automatic in autocad, and have been for a few versions now.

    If you use ddedit (which the shortcut command IS "ed", no matter if you select a text enitity, an mtext entity, an attributed block, or even a dimension, it will edit it using whatever it is supposed to. Get rid of the lisp and try it.

  3. #3
    Member ablanchard's Avatar
    Join Date
    2002-12
    Posts
    21

    Default Re: Text or Attributes

    Quote Originally Posted by sschwartz View Post
    I am sure the LT version is similar to the regular version, you shouldn't need to load an OLD useless lisp file to change text. All of these functions are already automatic in autocad, and have been for a few versions now.

    If you use ddedit (which the shortcut command IS "ed", no matter if you select a text enitity, an mtext entity, an attributed block, or even a dimension, it will edit it using whatever it is supposed to. Get rid of the lisp and try it.
    ddedit (ed) = single line text and mtext editor.
    attedit = attribute editor.
    Either one doesn't work for the other.

  4. #4
    I could stop if I wanted to sschwartz's Avatar
    Join Date
    2005-04
    Location
    Oakland County, Michigan
    Posts
    424

    Default Re: Text or Attributes

    Quote Originally Posted by ablanchard View Post
    ddedit (ed) = single line text and mtext editor.
    attedit = attribute editor.
    Either one doesn't work for the other.
    Maybe it doesnt work for LT then. Mine works on all 3, or if I double click either one, they all work.

Similar Threads

  1. Flipping Text Attributes
    By bap020799 in forum Dynamic Blocks - Technical
    Replies: 5
    Last Post: 2012-02-18, 05:21 PM
  2. Wrapping text in attributes
    By BCrouse in forum AutoLISP
    Replies: 4
    Last Post: 2004-09-26, 03:45 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
  •