Limits on # of blocks (2000)

Discussion in 'AutoCAD' started by Bill Oswald, Sep 14, 2003.

  1. Bill Oswald

    Bill Oswald Guest

    If there a limit on the # of blocks that AutoCAD can handle? I have a design
    that had 16,000 blocks. Using (old) lisp code I started generating blocks
    (lots of them a littlie at a time over several days of work). They all are
    created by a lisp function that contains a bunch of entmake commands. The
    blocks all contain several user attributes so several entmakes are called in
    the function. This code has worked for years. Once the block count in the
    database got near 33,000 blocks (over the course of several days) entmake
    stopped working! Any ideas?

    Thanks
    Bill
     
    Bill Oswald, Sep 14, 2003
    #1
  2. Hmm, 32768 is the maximum value for a 16 bit (2 bytes) integer.
    Not sure but it seems like a possible limit.
    Check if your block counting variable only can hold a 16 bit value.

    Conny
     
    Conny Klasson, Sep 15, 2003
    #2
  3. Bill Oswald

    Bill Oswald Guest

    I though about a possible 16 bit limit as well. The problem is that I am not
    counting blocks in AutoCAD. When this problem started to happen I dumped out
    a DXF file and did a count of the number of "BLOCKS" in it. In my lisp code
    I do not keep track of blocks. My function simply calls entmake in a loop
    to create a compound block then it does a tblsearch to make sure it exists.
    If true it inserts the block into the drawing. Today (as a test) I removed
    about 10,000 blocks from the database. My (old) code worked fine and I was
    able to add ~2000 more blocks. There must be some kind of limit that I am
    overlooking.

    Bill
     
    Bill Oswald, Sep 16, 2003
    #3
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.