+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Full Member
    Discipline
    Electrical
    Using
    AutoCAD 2016
    Join Date
    Apr 2017
    Posts
    56

    Default Numbering equipment with text LSP

    Registered forum members do not see this ad.

    Hello,

    Does anyone know of a LSP out there that will number the selection below properly without editing each piece of text?


  2. #2
    Full Member
    Discipline
    Electrical
    Using
    AutoCAD 2016
    Join Date
    Apr 2017
    Posts
    56

    Default

    Also, anyone know if a way where you could rotate the entire selection by 90 degrees and the text rotates with it? Would want that as a totally separate LSP if possible. thanks!

  3. #3
    Full Member
    Using
    AutoCAD 2010
    Join Date
    Oct 2015
    Posts
    67

    Default

    To create an array and increment each number then look at Lee Macs INCARRAY lisp and INCARRAYD

  4. #4
    Full Member
    Using
    AutoCAD 2010
    Join Date
    Oct 2015
    Posts
    67

    Default

    as for your second question, I depends how many times you need to do this, I would just rotate it and use the properties menu to set the text rotation.. but there might be a smart way to do all that in one go

  5. #5
    Super Member asos2000's Avatar
    Computer Details
    asos2000's Computer Details
    Operating System:
    WinXP
    Using
    AutoCAD 2007
    Join Date
    Sep 2007
    Location
    Cairo Egypt
    Posts
    658
    Sorry for my English.

  6. #6
    Full Member
    Discipline
    Electrical
    Using
    AutoCAD 2016
    Join Date
    Apr 2017
    Posts
    56

    Default

    Not what I was looking for but thanks for the response.

    I am looking for a LISP where I select all the text objects and it can order them from the first number to the last text object in increments of one. I do not like arrays.

  7. #7
    Full Member
    Discipline
    Electrical
    Using
    AutoCAD 2016
    Join Date
    Apr 2017
    Posts
    56

    Default

    tcount works great. thanks!

  8. #8
    Senior Member
    Computer Details
    ronjonp's Computer Details
    Operating System:
    Windows 10
    Using
    AutoCAD 2018
    Join Date
    Apr 2009
    Location
    Colorado
    Posts
    457

    Default

    Here's another:
    Code:
    (defun c:number	(/ i s)
      (setq i 0)
      (if (and (setq s (ssget ":L" '((0 . "text")))))
        (foreach e
    	     (vl-sort (vl-remove-if 'listp (mapcar 'cadr (ssnamex s)))
    		      '(lambda (a b) (> (caddr (assoc 10 (entget a))) (caddr (assoc 10 (entget b)))))
    	     )
          (entmod (append (entget e) (list (cons 1 (itoa (setq i (1+ i)))))))
        )
      )
      (princ)
    )

  9. #9
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    19,322

    Default

    There's also this.
    Lee Mac ProgrammingTwitterExchange App StoreDropbox (500MB free)

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

  10. #10
    Luminous Being
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    9,738

    Default

    Registered forum members do not see this ad.

    If you use annotative text an option is set angle to view so if you rotate what you have the text will rotate back to horizontal.
    A man who never made mistakes never made anything

Similar Threads

  1. Multi Text Numbering
    By WERDNA in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 3
    Last Post: 13th Dec 2012, 01:46 pm
  2. can I sort the text by numbering
    By e.mounir in forum AutoCAD Beginners' Area
    Replies: 5
    Last Post: 26th Mar 2010, 02:19 am
  3. Automatic Text Numbering
    By Vikes_Fl in forum AutoCAD General
    Replies: 1
    Last Post: 23rd Jun 2009, 05:28 pm
  4. Text numbering
    By wannabe in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 1
    Last Post: 20th Jan 2009, 02:57 pm
  5. Text Formating Numbering
    By venuj99 in forum AutoCAD General
    Replies: 5
    Last Post: 6th Jan 2009, 02:44 pm

Tags for this Thread

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