Jump to content

Recommended Posts

Posted

Pretty specific problem.

 

If am printing a PDF file through a script. So, I use the -plot command and run the following script:

 

-plot

y

model

DWG to PDF.pc3

ISO A4 (210.00 x 297.00 MM)

millimeters

landscape

n

window

-1000,-200,0

3500,2600,0

Fit

Center

yes

.

yes

a

NAME-OF-PDF-FILE

n

y

 

nice, and works perfectly, but the problem is that AutoCad NEVER asks where to save this PDF File. It's a miracle that i found it in My Documents. There must be a default path where CAD saves my PDFs, written somewhere. But i can't find it so i can change it! Anyone has a clue?

Posted

Go to your printers folder and you'll find it under the settings for the PDF printer. Are you using Adobe?

Posted

Thanks alanjt, but i can't find it. As I said, i use the printer named DWG to PDF.pc3

 

However, when i access the printer properties i can't find anywhere the default path.

I add a picture:

 

dibujouux.png

Posted

 

nice, and works perfectly, but the problem is that AutoCad NEVER asks where to save this PDF File.

Actually, it does and you have it in your script (NAME-OF-PDF-FILE)

 

 

It's a miracle that i found it in My Documents. There must be a default path where CAD saves my PDFs, written somewhere. But i can't find it so i can change it! Anyone has a clue?

 

If you do not include a path with the file name, it will go to the current directory (just like if you are doing it manually and the dialog comes up) - and generally the current directory is "My Documents"

 

It does not have anything to do with properties in the PC3 file

Posted

Right! But that also brings problems, because if i put the Path that i want in the script:

 

C:\Documents and Settings\claudio\Escritorio\Name-Of-The-File

 

CAD only takes C:\Documents as valid! I think it's because it is a script and he takes the " " (space) as an enter, but that worked well in the previous statements (DWG to PDF.pc3 should have been taken as DWG only, for that matter). So CAD doesn't get PATHS through script :S

 

I upload picture:

 

dibujo2ju.png

Posted

Try

C:\Docume~1\claudio\Escrit~1\Name-Of-The-File

Posted

Either put it in quotes "blah" or wrap it in a bit of code (strcat "blah")

Posted

Both suggestions work!

 

Perfect then! Now I won't have my pdfs scattered all over my disk!

 

Thanks a lot.

Posted

I have renamed this thread.

In the future, please name your threads according to the problem you are having.

Posted
I have renamed this thread.

In the future, please name your threads according to the problem you are having.

But that might make it easier for someone else, down the line. :roll:

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