auto numbering

Discussion in 'AutoCAD' started by Limbo, Apr 27, 2005.

  1. Limbo

    Limbo Guest

    can anyone point me to a free prog for sequential numbering with acad98lt
     
    Limbo, Apr 27, 2005
    #1
  2. Limbo

    S. P. S. Guest

    I use this to number my lots for subdivisions. You need to set text style
    height to 0 (zero) to work
    not a pretty program but it works.
    ****************************************************************************
    (defun c:number ( / ocmd oblp odim )
    (setq ocmd (getvar "cmdecho"))
    (setq oblp (getvar "blipmode"))
    (setq odim (getvar "dimzin"))
    (setvar "cmdecho" 0)
    (setvar "blipmode" 0)
    (setvar "dimzin" 0)
    (if (= nf nil) (setq nf 1))
    (setq nt nf)
    (setq nf (getint (strcat "\nLast No. Used: "
    (itoa (1- nf)) ", Enter Starting Number: <"
    (itoa nf) "> " )))
    (if (= nf nil) (setq nf nt))
    (setq ht (getreal "Enter Text Height <5>"))
    (if (= ht nil) (setq ht 5.0 ))
    (while
    (setq p (getpoint "Pick Point"))
    (command "text" "m" p ht "" nf)
    (setq nf (1+ nf))
    )
    (setvar "cmdecho" ocmd)
    (setvar "blipmode" oblp)
    (setvar "dimzin" odim)
    (prin1)
    (princ)
    ); end defun
    *********************************************************************
     
    S. P. S., Apr 28, 2005
    #2
  3. There's no LISP capability in native LT, I believe.
     
    Michael Bulatovich, Apr 28, 2005
    #3
  4. Limbo

    longshot Guest

    right on, nice little program...
     
    longshot, Apr 28, 2005
    #4
  5. Limbo

    Limbo Guest

    how do i implement this, tried to define a button, but will not take it
    i may be being thick, apologise if i am but i'm a novice at this sort of
    thing
     
    Limbo, Apr 28, 2005
    #5
  6. Limbo

    longshot Guest

    cut/paste everthing between the **** and the **** on to notepad and name it
    number.LSP
    then load aplication or drop it in the suite. then open a drawing & type
    "number" at the command prompt. worked great for me.
     
    longshot, Apr 28, 2005
    #6
  7. Michael Bulatovich, Apr 28, 2005
    #7
  8. Limbo

    longshot Guest

    ok,, maybe he should try a different LSP then. :eek:)
     
    longshot, Apr 29, 2005
    #8
  9. Limbo

    Chip Harper Guest

    Limbo,

    LT does not support the use of LISP programs such as the one that S.P.S.
    posted, you need to use a macro or diesel unless you have a third party
    application lisp enabler installed.

    Try this assigned to a button:

    ID_AUNUM
    [Autonumber]*^C^Ctext;_m;\;;$M=$(getvar,USERI1);setvar;USERI1;$(+,1,$(getvar,USERI1))

    I have not tested it on LT98 but it works on LT2000-2005.
     
    Chip Harper, Apr 29, 2005
    #9
  10. What is that, Chip? Spanish? ; )
     
    Michael Bulatovich, Apr 29, 2005
    #10
  11. Limbo

    longshot Guest


    what is this supposed to do? all it does is prompt for a text string one
    time.
     
    longshot, Apr 29, 2005
    #11
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.