+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Senior Member
    Computer Details
    cadman6735's Computer Details
    Operating System:
    Window 7
    Using
    Revit 2011
    Join Date
    Feb 2010
    Location
    Little Rock, AR
    Posts
    194

    Default Print to PDF without the layout name?

    Registered forum members do not see this ad.

    I read somewhere that in R14 that when you print to a file or PDF that the layout tab name is not included in the file name. In ACAD2000 this was changed to include the layout name in the file name after printing.


    I want to print to file and not have the layout name included in the file name, can this be done? I am sure it can but how?

    My code does not work... No supprise here...

    Code:
     
    (defun reNameLayout ()
     
      (setq
        acadActiveDocument (vla-get-ActiveDocument (vlax-get-acad-object)))
     
       (setq newName nil)
       (vla-put-name
       (vla-get-Layout (vla-get-PaperSpace acadActiveDocument)) newName)
      (princ)
      )

    Any ideas?

    thanks

  2. #2
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,816

    Default

    You can't have a null Layout Name, another approach would be to use code to rename the resultant files to remove the appearance of the layout name.

    Look into such functions as vl-file-rename, vl-directory-files etc, this might also help.
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  3. #3
    Senior Member
    Computer Details
    cadman6735's Computer Details
    Operating System:
    Window 7
    Using
    Revit 2011
    Join Date
    Feb 2010
    Location
    Little Rock, AR
    Posts
    194

    Default

    But surely when printing, the code pulls the layout name and appends it to the file name, somewhere. I understand that I can't have a nul layout tab but can I stop the layout name from being appended to the end of the file name at print?

    The file gets it name from somewhere. right?

  4. #4
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,816

    Default

    Quote Originally Posted by cadman6735 View Post
    But surely when printing, the code pulls the layout name and appends it to the file name, somewhere. I understand that I can't have a nul layout tab but can I stop the layout name from being appended to the end of the file name at print?

    The file gets it name from somewhere. right?
    Sure, but I very much doubt that interface is accessible through LISP.
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  5. #5
    Senior Member
    Computer Details
    cadman6735's Computer Details
    Operating System:
    Window 7
    Using
    Revit 2011
    Join Date
    Feb 2010
    Location
    Little Rock, AR
    Posts
    194

    Default

    sorry missed your second part of your post, you must have edited as I was or I am just blind

    I will look into the example you gave me

    Thanks

  6. #6
    Senior Member
    Computer Details
    cadman6735's Computer Details
    Operating System:
    Window 7
    Using
    Revit 2011
    Join Date
    Feb 2010
    Location
    Little Rock, AR
    Posts
    194

    Default

    I don't believe it, you mean to tell me that Lisp has limits (things it can't do)???

  7. #7
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,816

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by cadman6735 View Post
    I don't believe it, you mean to tell me that Lisp has limits (things it can't do)???
    lol, more than you know
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

Similar Threads

  1. layout print scale
    By atsutete in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 3
    Last Post: 9th Jul 2010, 06:00 pm
  2. How to print from layout autocad LT
    By Sang in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 28th Jun 2010, 10:48 am
  3. print jpg in scale from layout
    By lonedevil in forum AutoCAD General
    Replies: 2
    Last Post: 3rd Mar 2009, 11:15 pm
  4. building layout to print smaller
    By JessicaDeaken in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 18th Jan 2008, 02:54 am
  5. Print Rendered Layout ?
    By Brunello19 in forum AutoCAD 3D Modelling & Rendering
    Replies: 2
    Last Post: 21st Dec 2005, 09:12 am

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