layer list

Discussion in 'AutoCAD' started by robert vetrano, Apr 3, 2004.

  1. Hi
    I am having a problem with too many layers. I vaguely remember a command
    that increased the number allowed in the list. Am I dreaming or is there
    really such a command?

    Thanks
    Bob Vetrtano
     
    robert vetrano, Apr 3, 2004
    #1
  2. robert vetrano

    bob.at Guest

    Hello Bob

    I dont think that the number of layers is restricted - you can use as many as you want.
    For more help try to explain what's your problem

    bob.at
     
    bob.at, Apr 3, 2004
    #2
  3. robert!
    Hopefully this routine helps. I found out that the stringlength in
    layercommand can't be longer than 2048.

    (defun stringlength
    (lista5 layer_command layer_command_type / lista3 lista4)
    (setq lista3 lista5)
    (while lista3
    (setq lista4 (car lista3)
    lista3 (cdr lista3)
    )
    (while (and (car lista3) (< (strlen lista4) (- 2048 256)))
    (setq lista4 (strcat (car lista3) "," lista4))
    (setq lista3 (vl-remove (car lista3) lista3))
    )
    (if lista4
    (command layer_command layer_command_type lista4 "")
    )
    )
    )

    Rolf
     
    Rolf Rosenquist, Apr 3, 2004
    #3
  4. robert vetrano

    TCEBob Guest

    Please see my response in .autocad.2004.

    Double posting is not a great idea because the respondents don't see
    each other's messages.

    rs
     
    TCEBob, Apr 3, 2004
    #4
  5. set MAXSORT to 500
     
    Kevin R. Knox, Apr 3, 2004
    #5
  6. robert vetrano

    TCEBob Guest

    Well, you see, the ol' double post is tripping us up. Maxsort was
    addressed in the other posting. Anyway, mine was set at the factory to
    1000. Maxsort only tells how many layers will be *sorted*, not how many
    can be made. I posted a little lisp which makes layers up to as many as
    you want. I swallowed hard and went for 5000 and it worked. So I
    conclude that the only limit on the number of layers is the capacity of
    the table, which likely has to do with the largest integer in a 32-bit
    system.

    rs
     
    TCEBob, Apr 4, 2004
    #6
  7. robert vetrano

    R.K. McSwain Guest

    In R14, the "limit" was roughly 2^15 (32768) layers. R2000+ does not choke at this number.
     
    R.K. McSwain, Apr 5, 2004
    #7
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.