+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Full Member
    Using
    Electrical 2011
    Join Date
    Apr 2011
    Posts
    88

    Default Creates separate drawings of selected layouts

    Registered forum members do not see this ad.

    Hello,
    I found a lisp "LayoutsToDwgs.lsp". Is a great lisp but i like to have one in which i can select the layouts to create dwg`s.
    Can someone help me?

    Thanks,
    PmxCAD
    Attached Files

  2. #2
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    2,998

    Default

    Just replace this line:
    Code:
    (foreach lay (layoutlist)
    with:
    Code:
    (if (not (and (setq lay (getstring "\nIndicate layout to export: "))
                  (member (strcase lay) (mapcar 'STRCASE (layoutlist)))))
     (exit)
    )
    (progn
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  3. #3
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    2,998

    Default

    Or, to make it more user friendly, use this:
    Code:
    (prompt "\n\nIndicate index of layout to export")
    (textscr)
    (setq index       0
          listLayouts (layoutlist))
    (foreach theLayout listLayouts
     (prompt (strcat "\n   " (itoa (setq index (1+ index))) " = " theLayout))
    )
    (if (not (and (setq indexLayout (getint "\nLayout index: "))
                  (<= indexLayout (length listLayouts))))
     (exit)
     (setq lay (nth (1- indexLayout) listLayouts))
    )
    (graphscr)
    (progn
    to replace this line from your original routine:
    Code:
    (foreach lay (layoutlist)
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  4. #4
    Full Member
    Using
    Electrical 2011
    Join Date
    Apr 2011
    Posts
    88

    Default

    Registered forum members do not see this ad.

    Ok Mircea, works super. Is it also possible to select more layouts at the same time?

    PmxCAD

Similar Threads

  1. Attaching Multiple tif's to separate drawings?
    By ahb001 in forum AutoCAD Drawing Management & Output
    Replies: 8
    Last Post: 16th Apr 2012, 07:07 pm
  2. Layouts to individual drawings
    By Mamu in forum AutoCAD General
    Replies: 8
    Last Post: 31st Jan 2012, 03:33 pm
  3. Separate Drawings on Taskbar How to
    By voltron in forum AutoCAD Beginners' Area
    Replies: 3
    Last Post: 22nd Sep 2009, 10:37 pm
  4. Position Of Drawings In Layouts
    By SimonGodbold in forum AutoCAD Beginners' Area
    Replies: 4
    Last Post: 19th May 2008, 04:31 pm
  5. Exporting individual layouts to separate drawings?
    By Gideon in forum AutoCAD General
    Replies: 3
    Last Post: 5th May 2005, 03:53 pm

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