Layout list

Discussion in 'AutoCAD' started by kipshas, Apr 19, 2004.

  1. kipshas

    kipshas Guest

    Hi all,
    It seems to easy question but ...
    How can I get layout list whithuot using (layoutlist) and vla functions ...
    ???

    I tried to get selection set using filter:
    (setq objselectionset (ssget "X" (list (cons 0 "LAYOUT") (cons 0
    "AcDbLayout")))) but it returns nil :((

    Any sugestions ?
     
    kipshas, Apr 19, 2004
    #1
  2. kipshas

    zeha Guest

    (dictsearch(namedobjdict)"acad_layout")

    or

    (assoc 3 (dictsearch(namedobjdict)"acad_layout"))
     
    zeha, Apr 19, 2004
    #2
  3. kipshas

    Steve Doman Guest

    Nice. However if you want to get all the layout tab names, try something
    like this:

    (defun massoc (key alist / x nlist)
    ;;Jaysen Long
    (foreach x alist
    (if (eq key (car x))
    (setq nlist (cons (cdr x) nlist))
    )
    )
    (reverse nlist)
    )

    (massoc 3 (dictsearch(namedobjdict)"acad_layout"))
    or
    (vl-remove "Model" (massoc 3 (dictsearch(namedobjdict)"acad_layout")))

    Steve Doman
     
    Steve Doman, Apr 19, 2004
    #3
  4. kipshas

    Doug Broad Guest

    Suggestion: Get AutoCAD

    It takes real brass to get support for Intellicad
    on the Autodesk newsgroups.
     
    Doug Broad, Apr 19, 2004
    #4
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.