Author Topic: PDF Dialog  (Read 1436 times)

0 Members and 1 Guest are viewing this topic.

Willie

  • Swamp Rat
  • Posts: 958
  • Going nowhere slowly
PDF Dialog
« on: April 13, 2016, 04:42:15 AM »
Hi All

How do I get the the dialog the AutoCAD uses, instead of the one used with getfiled?


Code: [Select]
(defun c:A0_BIGENCOLOUR_PDF (/)
 (setvar "cmdecho" 0)

    (setq cur_plottransparencyoverride (getvar "PLOTTRANSPARENCYOVERRIDE"))
   (setvar "PLOTTRANSPARENCYOVERRIDE" 2)
 
 
  (setq cur_space (getvar "ctab"))
  (if (= cur_space "Model")
  (alert "\n You are in MODEL SPACE - Please select a PAPER SPACE layout to plot! " )

  (
   (command "zoom" "Extents")
    (setq filename (getfiled "Enter PDF file name" ""  "pdf" 1)) ;;;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/plot-pdf-lisp/td-p/3060536
  (command "-plot"                                   ; Start plot command
   "yes"                                     ; Detailed plot configuration?
   (getvar "ctab")                           ; Get a layout name
   "DWG To PDF.pc3"                          ; Enter an output device name  GEBRUIK DUBBEL \\ VIR UNC PARTHS
   "ISO full bleed A0 (841.00 x 1189.00 MM)" ; Enter paper size
   "Millimeters"                             ; Enter paper units
   "Landscape"                               ; Enter drawing orientation
   "No"                                      ; Plot upside down?
   "Extents"                                 ; Enter plot area
   "100/100"                                 ; Enter plot scale
   "Center"                                  ; Enter plot offset (x,y)
   "Yes"                                     ; Plot with plot styles?
   "BigenColour.ctb"                         ; Enter plot style table name or
   "Yes"                                     ; Plot with lineweights?
   "Yes"                                     ; Scale lineweights with plot scale?
   "No"                                      ; Plot paper space first?
   "No"                                      ; Hide paperspace objects?
   filename
;;;    "No"                                      ; Write the plot to a file
   "Yes"                                     ; Save changes to page setup
   "Yes"                                     ; Proceed with plot
   ))
 
        ); if cur_space
  (setvar "cmdecho" 1)
  (setvar "PLOTTRANSPARENCYOVERRIDE" cur_plottransparencyoverride)
  (princ)
 
 (princ)
  )
Soli Deo Gloria | Qui Audet Adipiscitur
Windows 8  64-bit Enterprise | Civil 3D 2015 and 2016| ArcGIS 10.1
Yogi Berra : "I'd give my right arm to be ambidextrous."

Lee Mac

  • Seagull
  • Posts: 12915
  • London, England
Re: PDF Dialog
« Reply #1 on: April 13, 2016, 06:41:03 AM »
There is this by Patrick, but I've not been successful in applying it.

Peter2

  • Swamp Rat
  • Posts: 653
Re: PDF Dialog
« Reply #2 on: April 14, 2016, 10:52:30 AM »
DosLib offers you an extended file-dialog.
Peter

AutoCAD Map 3D 2023 German (so some technical terms will be badly retranslated to English)
BricsCAD V23

Willie

  • Swamp Rat
  • Posts: 958
  • Going nowhere slowly
Re: PDF Dialog
« Reply #3 on: April 15, 2016, 08:08:44 AM »
Thanks!

DOSlib works perfect. 

Soli Deo Gloria | Qui Audet Adipiscitur
Windows 8  64-bit Enterprise | Civil 3D 2015 and 2016| ArcGIS 10.1
Yogi Berra : "I'd give my right arm to be ambidextrous."

Didge

  • Bull Frog
  • Posts: 211
Re: PDF Dialog
« Reply #4 on: April 20, 2016, 11:25:30 AM »
This should do the job nicely, although it will require the express tools to be loaded.

(acet-ui-getfile "Dialogue Title" "" "DWG" "" 0)
Think Slow......