Page setup object

Discussion in 'AutoCAD' started by Karabas, May 27, 2004.

  1. Karabas

    Karabas Guest

    Can someone tell me how can I get a <PlotToFile> (is true or not) property
    from the below list.

    The vlax-dump-object returns the following properties and methods and I
    don't see here anything close to PlotToFile name.

    In fact "\\\\CAIS\\Generic PostScript Printer" driver configured for
    plotting a file not to a printer. I hope I don't have to go to the windows
    printer object to get this "simple" information. Also I notice that AutoCAD
    does not save the 'Plot to file' setting with the named page setup; this is
    something I hope Autodesk can improve it.




    Command: (vlax-dump-object cfg t)
    ; IAcadPlotConfiguration: AutoCAD PlotConfiguration Interface
    ; Property values:
    ; Application (RO) = Exception occurred
    ; CanonicalMediaName = "Letter"
    ; CenterPlot = 0
    ; ConfigName = "\\\\CAIS\\Generic PostScript Printer"
    ; Document (RO) = #<VLA-OBJECT IAxDbDocument 05ec2648>
    ; Handle (RO) = "71"
    ; HasExtensionDictionary (RO) = 0
    ; ModelType (RO) = 0
    ; Name = "Test1"
    ; ObjectID (RO) = 1075899912
    ; ObjectName (RO) = "AcDbPlotSettings"
    ; OwnerID (RO) = 1075899592
    ; PaperUnits = 0
    ; PlotHidden = 0
    ; PlotOrigin = (0.0 0.0)
    ; PlotRotation = 1
    ; PlotType = 4
    ; PlotViewportBorders = 0
    ; PlotViewportsFirst = -1
    ; PlotWithLineweights = -1
    ; PlotWithPlotStyles = -1
    ; ScaleLineweights = 0
    ; ShowPlotStyles = 0
    ; StandardScale = 16
    ; StyleSheet = "MP.ctb"
    ; UseStandardScale = -1
    ; ViewToPlot = ""
    ; Methods supported:
    ; CopyFrom (1)
    ; Delete ()
    ; GetCanonicalMediaNames ()
    ; GetCustomScale (2)
    ; GetExtensionDictionary ()
    ; GetLocaleMediaName (1)
    ; GetPaperMargins (2)
    ; GetPaperSize (2)
    ; GetPlotDeviceNames ()
    ; GetPlotStyleTableNames ()
    ; GetWindowToPlot (2)
    ; GetXData (3)
    ; RefreshPlotDeviceInfo ()
    ; SetCustomScale (2)
    ; SetWindowToPlot (2)
    ; SetXData (2)
    T
     
    Karabas, May 27, 2004
    #1
  2. Karabas

    BillZ Guest

    I think this is what you're looking for:

    (setq acadobj (vlax-get-acad-object))
    (setq acdoc (vla-get-activedocument acadobj))
    (setq plt (vla-get-plot acdoc))
    Command: (vlax-dump-object plt t)
    ; IAcadPlot: The set of methods and properties used for plotting layouts
    ; Property values:
    ; Application (RO) = #<VLA-OBJECT IAcadApplication 00b9b5e4>
    ; BatchPlotProgress = 0
    ; NumberOfCopies = 1
    ; QuietErrorMode = 0
    ; Methods supported:
    ; DisplayPlotPreview (1)
    ; PlotToDevice (1)
    ; PlotToFile (2)
    ; SetLayoutsToPlot (1)
    ; StartBatchMode (1)
    T

    Bill
     
    BillZ, May 27, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.