cadman6735 Posted December 30, 2010 Posted December 30, 2010 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... (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 Quote
Lee Mac Posted December 30, 2010 Posted December 30, 2010 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. Quote
cadman6735 Posted December 30, 2010 Author Posted December 30, 2010 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? Quote
Lee Mac Posted December 30, 2010 Posted December 30, 2010 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. Quote
cadman6735 Posted December 30, 2010 Author Posted December 30, 2010 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 Quote
cadman6735 Posted December 30, 2010 Author Posted December 30, 2010 I don't believe it, you mean to tell me that Lisp has limits (things it can't do)??? Quote
Lee Mac Posted December 30, 2010 Posted December 30, 2010 I don't believe it, you mean to tell me that Lisp has limits (things it can't do)??? lol, more than you know Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.