Selected tabs only

Discussion in 'AutoCAD' started by Kiwi Russ, May 15, 2004.

  1. Kiwi Russ

    Kiwi Russ Guest

    hi
    How can I make the code below print only the tabs I highlight. At the moment
    all tabs are printed regardless of which tabs I selected
    (btw this is to get around 2005's printing issues)
    many thanks if you can solve my problem
    Russ

    (defun C:plotabs (/ )
    (foreach LLN (layoutlist)
    (setvar "CTAB" LLN)
    (command "-plot" "" "" "" "" "" "" "")
    )
    (princ)
    )
     
    Kiwi Russ, May 15, 2004
    #1
  2. Kiwi Russ

    ECCAD Guest

    Kiwi,
    I've done something similar, used a dialog with (2) lists.
    If you load the dialog with the left list (your list of tabs), then when a tab is highlighted, 'add' to the 2nd list. When done, use 'OK' tile to grab (to do) list, and run that through.

    Bob
     
    ECCAD, May 15, 2004
    #2
  3. Kiwi Russ

    Kiwi Russ Guest

    Bob
    I also would like to make a dialog box, but making something like
    you suggest is beyond me. At this stage I would just like to get it going
    without any dialog.
    thanks
    Russ



    tab is highlighted, 'add' to the 2nd list. When done, use 'OK' tile to grab
    (to do) list, and run that through.
     
    Kiwi Russ, May 15, 2004
    #3
  4. Kiwi Russ

    jclaidler Guest

    Which version of AutoCAD are you using ??
     
    jclaidler, May 17, 2004
    #4
  5. Russ,

    I don't think you can access what tabs are highlighted. Well I should
    say I've never been able to find a way. A real quick method to use a
    dialog would be with doslib.

    (setq layouts_to_plot
    (dos_multilist
    "Plot Layouts"
    "Select layouts"
    (layoutlist)))
    then..

    (foreach LLN layouts_to_plot
    ...plot them


    --
    Ken Alexander
    Acad2004
    Windows XP

    "We can't solve problems by using the same kind
    of thinking we used when we created them."
    --Albert Einstein
     
    Ken Alexander, May 17, 2004
    #5
  6. Kiwi Russ

    Kiwi Russ Guest

    many thanks Ken that works wonderfully!! :)
    Now I have the plotting functionality back in acad 2005 just like in acad
    2004.
    cheers Russ
     
    Kiwi Russ, May 18, 2004
    #6
  7. You're welcome Russ.

    --
    Ken Alexander
    Acad2004
    Windows XP

    "We can't solve problems by using the same kind
    of thinking we used when we created them."
    --Albert Einstein
     
    Ken Alexander, May 19, 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.