Jump to content

PDF file saving location - Need help


Recommended Posts

Posted

Hi MSasu, sorry for the delay.

 

is the routine printing successfuly in fact and the issues were the location of the PDF files and their naming?

 

Yes correct...its printing successfuly but the issues are "the location of the PDF files and their naming only"

 

By the way, did you checked the PUBLISH feature of AutoCAD?

 

Yes... I checked the PUBLISH command. its good one but Every time i have to set the PDF file output location in the "PUBLISH options" for each projects manually. becoz the PDF file out path location will be different for each projects.

  • 3 weeks later...
  • Replies 23
  • Created
  • Last Reply

Top Posters In This Topic

  • rajeshmuthu

    12

  • MSasu

    8

  • BIGAL

    1

  • Bhull1985

    1

Posted

Can someone help to fix this issue? It would be very helpful if i got any help.

Posted

It seems you are getting help from a couple of members so why don't you just have some patience and await further replies? This is not an "on demand" service that you have paid for. Members volunteer not only their time but their efforts as well. A little appreciation for that fact would be nice.

  • 1 year later...
Posted
My fault, I had not tested the code in Layout, too. So please find below a fixed version and sorry for inconvenience.

(defun c:test12 ( / cm )
   (setq cm (getvar 'CMDECHO))
   (setvar 'CMDECHO 0)
   (command "_.-plot" "_y"
       (if (= 1 (getvar 'TILEMODE)) "Model" (getvar 'CTAB))
       "DWG To PDF.pc3" "ARCH D (36.00 x 24.00 Inches)"
       "_M" "_L" "_N" "_E" "_F" "_C" "_Y" "monochrome.ctb" "_Y"
   )
   (if (= 1 (getvar 'TILEMODE))
       (command "_A")
       (command "_N" "_Y" "_N")
   )
   (command (strcat (getvar 'DWGPREFIX) "PDF files\\" (vl-filename-base (getvar 'DWGNAME))) "_Y" "_Y")
   (setvar 'CMDECHO cm)
   (princ)
)
(vl-load-com) (princ)

 

I checked this routin for first time after load it saved in my documents after running again plot it save in proper location!!!!!!!!!!!!!

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