+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Full Member Ozymandias's Avatar
    Using
    AutoCAD 2009
    Join Date
    Nov 2007
    Location
    Hampshire
    Posts
    52

    Default Using lisp with blocks

    Hey guys me again,
    I Have A lisp that gives me the ability to generate unique numbers with a stated precurser I.e. 04nwo1-02 -03 -04 etc.
    Now the thing that I would like to do with this (although I highly doubt you can) is to be able to insert it into a field inside a block, so that when I insert a block each time you get a unique number.
    its basically a desk numbering system. I have the blocks already set up with a field to state the floor number but I need to be able to have the area and number (4 areas in total) so if you have another idea that would be helpfull I would greatly appreciate it as it would save me days renumbering every desk by hand.

  2. #2
    Full Member Ozymandias's Avatar
    Using
    AutoCAD 2009
    Join Date
    Nov 2007
    Location
    Hampshire
    Posts
    52

    Default

    I take it from the silence no one knows how this can be done? the only other way I can think of is to have all the numbers in an external xcel sheet and refer blocks individually (attach as attribute) to the references I know this can be done but dont know how to do that.
    If no one knows are there any books out there that could help ?

  3. #3
    Super Moderator rkmcswain's Avatar
    Computer Details
    rkmcswain's Computer Details
    Operating System:
    Windows 7 Pro x64
    Motherboard:
    Intel DZ77RE-75K
    CPU:
    i7-3770K 3.50GHz
    RAM:
    32GB
    Graphics:
    Nvidia Quadro 2000
    Primary Storage:
    125GB SSD
    Secondary Storage:
    500GB SATA
    Monitor:
    ASUS 27" / ASUS 24"
    Discipline
    Civil
    Using
    Civil 3D 2014
    Join Date
    Sep 2005
    Location
    Houston
    Posts
    3,878

    Default

    So you just want to insert a block and have an attribute filled out using an incremental number?

    That shouldn't be too difficult. You could store the last (or next) number in a dictionary - and just refer to it when you insert the next block.

  4. #4
    Full Member Ozymandias's Avatar
    Using
    AutoCAD 2009
    Join Date
    Nov 2007
    Location
    Hampshire
    Posts
    52

    Default

    ive not come accross dictionarys and refering to them before .
    I have just looked it up in the F1 but its not very helpfull on the subject. Thanks for the help.. ill continue to look around to see what you are refering to.

  5. #5
    Forum Deity
    Using
    Civil 3D 2008
    Join Date
    Sep 2006
    Location
    Pittsburgh, PA, USA
    Posts
    3,581

    Default

    Look here for an explanation of dictionaries
    http://www.afralisp.net/lisp/dict.htm

  6. #6
    Full Member Ozymandias's Avatar
    Using
    AutoCAD 2009
    Join Date
    Nov 2007
    Location
    Hampshire
    Posts
    52

    Default

    Registered forum members do not see this ad.

    thanks definately worth investigating..

Similar Threads

  1. Lisp colour change for all layers and blocks
    By hyposmurf in forum AutoLISP, Visual LISP & DCL
    Replies: 108
    Last Post: 2nd Jun 2014, 01:26 pm
  2. Lisp for inserting blocks without basic prompts
    By Towel in forum AutoLISP, Visual LISP & DCL
    Replies: 19
    Last Post: 13th Oct 2007, 03:24 pm
  3. Blocks, Details, LISP Routines and More...
    By good_m in forum Useful Links
    Replies: 0
    Last Post: 30th Mar 2006, 08:06 pm
  4. redifining blocks in LISP
    By dimtick in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 28th Dec 2005, 06:36 pm
  5. Lisp for counting blocks?
    By Bloke in forum AutoCAD Drawing Management & Output
    Replies: 4
    Last Post: 9th Oct 2003, 06:24 am

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