Impression

Discussion in 'AutoCAD' started by FAB, Mar 15, 2005.

  1. FAB

    FAB Guest

    Hello,

    I want to know how find my current papersize whit th default printer.

    I try with api function but i can't find how use it.

    THANK

    Put an - beetween be and iees to send an anwser.
     
    FAB, Mar 15, 2005
    #1
  2. FAB

    KCCadDude Guest

    Canonicalmedianame is paper size.

    ThisDrawing.ActiveLayout.CanonicalMediaName

    I attached a sequence I use for a single letter size print.
    Your Pens and PC3 should be preset standards.

    PltStyle = "YourPens.ctb"
    ThisDrawing.ActiveLayout.RefreshPlotDeviceInfo
    ThisDrawing.ActiveLayout.ConfigName = "Your.pc3"
    ThisDrawing.ActiveLayout.CanonicalMediaName = "Letter"
    ThisDrawing.ActiveLayout.StyleSheet = PltStyle
    ThisDrawing.ActiveLayout.PlotRotation = ac0degrees
    ThisDrawing.ActiveLayout.PlotType = acExtents
    ThisDrawing.ActiveLayout.StandardScale = acScaleToFit
    ThisDrawing.Plot.NumberOfCopies = 1
    ThisDrawing.Plot.PlotToDevice
     
    KCCadDude, Mar 17, 2005
    #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.