Jump to content

Lisp For PDF in portrait is OK but in landscape is not fully plotted?


tive29

Recommended Posts

I am using the below LISP to plot PDF.

I use the same code for portrait ("P" instead of "L") the PDF comes out ok.

 

The problem is for landscape, the PDF comes out in a smaller plot area such that all 4 side part of the drawing is not plotted.

 

Why is that?

 

(defun C:PL ( / cmd file )

   (setq cmd (getvar 'CMDECHO))
   (setvar 'CMDECHO 0)
       (command
           "_.-plot"
           "Y"
           ""
           "DWG To PDF.pc3"
           "ISO expand A4 (297.00 x 210.00 MM)"
           "M"
           "L"
           "N"
           "W"
        ""
            ""
           "1=1"
           "C"
           "Y"
           "PDF.ctb"
           "Y"
           "N"
           "N"
           "N"
           ""
           "N"
           "Y"
   )
   (setvar 'CMDECHO cmd)
   (princ)
)

Link to comment
Share on other sites

Perhaps change "1=1" to "Fit" ? and your window coordinates , where do they come from , I only see "" "" (two enters). So perhaps use extends?

 

 

gr.Rlx

Link to comment
Share on other sites

My money is on RLX answer use hard coded pts these can be outside plot area then use the "C" option centre sometimes you need just a mm or two to get that last line to work. Also Tharwats landscape or portrait.

 

"A3" "m"  "LANDSCAPE"  "N"   "W"  "-6,-6"  "807,560" "1=2"  "C"

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