Jump to content

Print to PDF without the layout name?


cadman6735

Recommended Posts

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... :unsure:

 

 
(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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...