See the top rated post in this thread. Click here

Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: Export Layout Tab Names

  1. #1
    100 Club avdesign's Avatar
    Join Date
    2005-08
    Location
    STL Metro
    Posts
    173
    Login to Give a bone
    1

    Default Export Layout Tab Names

    Hey everybody,
    I did a search already and didn't find anything related to what I'd like to do.

    What I want to do is export the name of a single layout tab or multiple layout tabs to a text file. The one thing I don't want to use is Sheet set Manager. I there a way to do this or am I SOL.

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: Export Layout Tab Names

    Nothing built into acad, but lisp or vba can do it.
    C:> ED WORKING....


    LinkedIn

  3. #3
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Export Layout Tab Names

    Here is a quick routine to do this....

    Code:
    (setq fn (strcat (getenv "temp") "\\" "layoutlist.txt")
          fp (open fn "w")
    )      
    (vlax-for x
    	  (vla-get-Layouts
    	    (vla-get-ActiveDocument
    	      (vlax-get-acad-object)
    	    )
    	  )
              (princ (vla-get-Name x) fp)
              (princ "\n" fp)
    )
    (close fp)
    (startapp "notepad" fn)
    R.K. McSwain | CAD Panacea |

  4. #4
    100 Club avdesign's Avatar
    Join Date
    2005-08
    Location
    STL Metro
    Posts
    173
    Login to Give a bone
    0

    Smile Re: Export Layout Tab Names

    Oh freakin' Sweet
    Thanks for that chunk of code.

  5. #5
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Export Layout Tab Names

    No problem. Have a good one.
    R.K. McSwain | CAD Panacea |

  6. #6
    All AUGI, all the time
    Join Date
    2004-06
    Location
    Slidell, Louisiana
    Posts
    972
    Login to Give a bone
    0

    Default Re: Export Layout Tab Names

    Is that code vba or lisp? How would I save it and activate it?

  7. #7
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Export Layout Tab Names

    Lisp.
    Copy it to Notepad.
    Save as a file like "listlayouts.lsp" - to a directory that is in your support file search path
    When you need to run it, just load it like this (load "listlayouts")
    R.K. McSwain | CAD Panacea |

  8. #8
    All AUGI, all the time
    Join Date
    2004-06
    Location
    Slidell, Louisiana
    Posts
    972
    Login to Give a bone
    0

    Default Re: Export Layout Tab Names

    Thanks R.K. I appreciate the info.
    Robert

    Does it work with acad 2008 vanilla. I copied it and saved it in the support directory, but when i loaded it i got this error: ; error: no function definition: VLAX-GET-ACAD-OBJECT. Not savvy with lisp, so i have no idea what this means.
    Last edited by rmk; 2007-11-09 at 02:46 PM. Reason: additional info

  9. #9
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,805
    Login to Give a bone
    0

    Default Re: Export Layout Tab Names

    Sorry about that. Add (vl-load-com) to the top of the file.
    R.K. McSwain | CAD Panacea |

  10. #10
    All AUGI, all the time
    Join Date
    2004-06
    Location
    Slidell, Louisiana
    Posts
    972
    Login to Give a bone
    0

    Default Re: Export Layout Tab Names

    Thanks, that worked just fine.

Page 1 of 2 12 LastLast

Similar Threads

  1. Layout tabs names change when layout renamed in SSM
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 2
    Last Post: 2013-01-20, 05:07 AM
  2. Layout Tab Names as Fields
    By ron.hodkins in forum ACA General
    Replies: 1
    Last Post: 2008-06-23, 05:05 PM
  3. Colors on layout tab names
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2008-05-14, 07:07 PM
  4. Fields in layout names
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 3
    Last Post: 2006-03-27, 09:17 AM
  5. Publish layout tabs and layout tab names to PDF
    By dfuehrer in forum AutoCAD Plotting
    Replies: 9
    Last Post: 2005-11-09, 02:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •