Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Script to generate PDF and scaling issue

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
353 Views, 3 Replies

Script to generate PDF and scaling issue

We have an lsp script that we use to generate searchable PDFs for batches of drawings, the command used to perfrom the plot is as follows:

(command "-Plot" "Y"  (cdr x) "DWG To PDF.pc3" "ANSI A (11.00 x 8.50 Inches)" "Inches" "Landscape" "No" "Extents" "1:1" "Center"  "Y" "monochrome.ctb" "N" "N" "Y" "N" (strcat (getvar "DWGPREFIX") (substr (getvar "dwgname") 1 (- (strlen (getvar "dwgname")) 4)) "---" (cdr x) ".pdf")  "N" "Y")

The problem we have is when there is a viewport object in a layout that is far larger than the drawing that is inside the frame of the viewport.  The "extent" plot option scales the PDF to the frame of the viewport, hence the drawing looks tiny in the PDF as it occupies only a small area in the lower corner of the viewport.

 

Can anyone advise if there is a method we can use to "ignore" (or even delete?) the viewport when plotting the draeing and using the extents option?

 

We can manually open up each drawing and simply do a plot Window, but we need to run this for hundreds of drawings so doing it manually is not going to be practical.

 

Any advice appreciated!

 

3 REPLIES 3
Message 2 of 4
maratovich
in reply to: Anonymous

Attach an example of your dwg file

 

---------------------------------------------------------------------
Software development
Automatic creation layouts and viewport. Batch printing drawings from model.
www.kdmsoft.net
Message 3 of 4
RobDraw
in reply to: Anonymous

Using extents for plotting be problematic as you are finding. I used to use "Window" exclusively as that gives the user the most control. Also, the use of named page set-ups is essential for any automated plotting.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
Message 4 of 4
Anonymous
in reply to: RobDraw

thanks, after some trial and error I have found that this approach seems to do what I want:

  1. Run AUDIT and PURGE to flush out redundant text objects that are outside of the border of the drawing
  2. Create a new layer, set to frozen
  3. Move viewport to new frozen layer
  4. zoom\plot to extents

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report