See the top rated post in this thread. Click here

Page 1 of 8 12345 ... LastLast
Results 1 to 10 of 72

Thread: Auto number attribute lisp fix

  1. #1
    Active Member
    Join Date
    2007-11
    Posts
    68
    Login to Give a bone
    0

    Question Auto number attribute lisp fix

    Hey guys,

    I need some help altering this LISP routin I found on the web.

    The routin allows you to select an attribute in a block (the block may contain alot of attributes), then asks you for a start number, then asks for which blocks to number. Then auto numbers the selected blocks (randomly) starting with the number you entered earlier.

    The general principle is perfect and it almost works exactly how I need it to with the following problems,

    1) It doesn't number the blocks in the order you select them in. (it would be nice to see the numbers entered as you select the block)
    2) You can't add abbreviations to the auto number eg. RW1, SW1, 10-1 (1 being the auto number).
    Attached Files Attached Files

  2. #2
    I could stop if I wanted to
    Join Date
    2003-12
    Location
    Pittsburgh, PA
    Posts
    355
    Login to Give a bone
    1

    Default Re: Auto number attribute lisp fix

    not a fix, but maybe something here will do what you want
    http://asmitools.com/Files/Programs.html

  3. #3
    Active Member
    Join Date
    2007-11
    Posts
    68
    Login to Give a bone
    0

    Default Re: Auto number attribute lisp fix

    Thank man i love you

  4. #4
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Auto number attribute lisp fix

    Here's one I created a while back ... allows prefix, suffix, minimum digits (those 0001, 0002, etc.) and does increments with Alpa numerals as well (used a lot with grid-lines, although I've removed the I and O characters from that, easy to add back though add to list on 21st line in LSP).
    Attached Files Attached Files

  5. #5
    I could stop if I wanted to
    Join Date
    2003-12
    Location
    Pittsburgh, PA
    Posts
    355
    Login to Give a bone
    0

    Default Re: Auto number attribute lisp fix

    Quote Originally Posted by Zuke View Post
    Thank man i love you
    A simple thanks will suffice...

  6. #6
    100 Club andrewp's Avatar
    Join Date
    2003-06
    Posts
    149
    Login to Give a bone
    0

    Default Re: Auto number attribute lisp fix

    Thank you... i used lpseifert's link and found a lisp routine that sort of works... it will do for now...

    "num.lsp."

  7. #7
    Member xfirez's Avatar
    Join Date
    2003-10
    Location
    Asia
    Posts
    19
    Login to Give a bone
    0

    Exclamation Re: Auto number attribute lisp fix

    Quote Originally Posted by irneb View Post
    Here's one I created a while back ... allows prefix, suffix, minimum digits (those 0001, 0002, etc.) and does increments with Alpa numerals as well (used a lot with grid-lines, although I've removed the I and O characters from that, easy to add back though add to list on 21st line in LSP).
    i try this but nothing happen..@ command type "increment" hit enter..nothing..

  8. #8
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Auto number attribute lisp fix

    Are you sure you saved both files to a support folder & loaded the LSP? Could you copy the error shown at command line? (If hidden press F2 for text screen)

  9. #9
    Member xfirez's Avatar
    Join Date
    2003-10
    Location
    Asia
    Posts
    19
    Login to Give a bone
    0

    Exclamation Re: Auto number attribute lisp fix

    Quote Originally Posted by irneb View Post
    Are you sure you saved both files to a support folder & loaded the LSP? Could you copy the error shown at command line? (If hidden press F2 for text screen)
    Code:
    Command:
    Command: appload
    Increment.lsp successfully loaded.
    
    
    Command:
    Command:
    Command: increment
    *Cancel*
    
    Command: appload
    Increment.lsp successfully loaded.
    Increment.lsp successfully loaded.
    
    
    Command:
    Command:
    Command:
    Command: increment
    *Cancel*
    
    Command: increment
    *Cancel*
    both files had been save on one folder.

    oliver

  10. #10
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: Auto number attribute lisp fix

    It sounds as if it can't find the dialog file (DCL). Is the folder you saved these to under your Support Search Path? Tools --> Options --> Files tab --> Support File Search Path. It has to be saved under any one of these, or you need to add that folder to these paths ... otherwise it won't be able to find this file.

    If you don't want to have them saved under one of these folders, then you can use the Visual Lisp compiled file attached. It includes both LSP & DCL and can be saved wherever you want. It can just not be edited. Extract the VLX from the ZIP to the folder of your choice ... for some reason AUGI doesn't allow upload of VLX files.
    Attached Files Attached Files

Page 1 of 8 12345 ... LastLast

Similar Threads

  1. Auto Number in AutoCAD
    By congnvc370652 in forum Dot Net API
    Replies: 0
    Last Post: 2014-10-11, 09:06 AM
  2. 2011: Express Tools Auto Number - Skips Number in Multi-line Mtext
    By stusic in forum AutoCAD General
    Replies: 3
    Last Post: 2013-01-29, 02:38 PM
  3. Auto-Number with Grids
    By simon.perkins in forum AutoLISP
    Replies: 3
    Last Post: 2009-08-18, 10:48 AM
  4. auto number title blocks
    By lee.johnson in forum AutoLISP
    Replies: 5
    Last Post: 2009-04-20, 02:50 PM
  5. Auto Re-Number Door/Window Tag V9.0
    By Firmso in forum Revit Architecture - General
    Replies: 3
    Last Post: 2007-04-18, 04:05 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
  •