Results 1 to 2 of 2

Thread: Incremental Attribute values using AutoLisp

  1. #1
    Member
    Join Date
    2017-10
    Posts
    15
    Login to Give a bone
    0

    Default Incremental Attribute values using AutoLisp

    Hello,
    I am trying to write a code which will edit attribute in incremental numbering with each click on attribute. The easiest way is to use command "ATTIPEDIT".
    But I failed use ATTIPEDIT in LISP. Pls help to run this code:

    Code:
    (defun c:DTAG ()
     (princ "\n AUTOMATIC ATTRIBUTE SEQUENTIAL NUMBERING")
     (setq no (getint "\n Enter Starting Number : "))
     (setq pt T)
     (while pt
     (setq notxt (itoa no))
     (setq pt (getpoint (strcat "\n Select Attribute to be changed ( "notxt" ) < exit > : ")))
     (if pt
     (progn
     (command "_.ATTIPEDIT" pt notxt)
     (setq no (+ no 1))
     )
     (princ "\n Routine terminated normally by User")
     )
     )
     (setvar "CMDECHO" ocmd)
     (setq *error* olderr) ;;Restore old error handler
     (princ)
     )
    PFA ACAD file to test. Try putting incremental numbers in place of "0".
    Attached Files Attached Files

  2. #2
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    559
    Login to Give a bone
    0

    Default Re: Incremental Attribute values using AutoLisp

    Look at reply at Cadtutor.

Similar Threads

  1. Replies: 2
    Last Post: 2017-03-11, 06:16 PM
  2. 2013: AutoLISP to Remove Zeros from Attribute Values
    By chris.ortloff676798 in forum AutoCAD General
    Replies: 9
    Last Post: 2014-07-21, 01:39 PM
  3. AutoLISP function to change DB's values
    By truevis in forum Dynamic Blocks - Technical
    Replies: 3
    Last Post: 2007-11-19, 05:31 AM
  4. AutoLISP function to get values of existing dynamic block insert
    By truevis in forum Dynamic Blocks - Technical
    Replies: 0
    Last Post: 2007-11-17, 04:34 PM
  5. Add Attribute values together
    By ReachAndre in forum AutoLISP
    Replies: 11
    Last Post: 2007-10-31, 03:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •