← Inbox

C3D-0258 · 260714 Huckaby: why is the 17X11 paper still portrait done

READ-ONLY. Reads the layouts actual media, paper size, margins, origin and rotation, plus every available media name and plot device, to find why the printable area is still 11x17 portrait.

Script file
C3D-0258.cs
Target
260714 - 285 Huckaby Rd.dwg · model space
Author
claude
Approved
yes · auto-auth
Timeout
60s

C# payload

// What does the 17X11 layout ACTUALLY have for paper, and what landscape media are available?
var bt = (BlockTable)Tx.GetObject(Db.BlockTableId, OpenMode.ForRead);
foreach (ObjectId btrId in bt) {
    var rec = (BlockTableRecord)Tx.GetObject(btrId, OpenMode.ForRead);
    if (!rec.IsLayout) continue;
    var lay = (Layout)Tx.GetObject(rec.LayoutId, OpenMode.ForRead);
    if (lay.LayoutName != "17X11") continue;
    Log("media        : " + lay.CanonicalMediaName);
    Log("plot config  : " + lay.PlotConfigurationName);
    Log(string.Format("paper size   : {0:F3} x {1:F3} (mm)", lay.PlotPaperSize.X, lay.PlotPaperSize.Y));
    Log("rotation     : " + lay.PlotRotation);
    Log("plot type    : " + lay.PlotType);
    Log("units        : " + lay.PlotPaperUnits);
    var m = lay.PlotPaperMargins;
    Log(string.Format("margins      : L{0:F3} B{1:F3} R{2:F3} T{3:F3}", m.MinPoint.X, m.MinPoint.Y, m.MaxPoint.X, m.MaxPoint.Y));
    var o = lay.PlotOrigin;
    Log(string.Format("origin       : {0:F3},{1:F3}", o.X, o.Y));
    var ext = lay.Extents;
    Log(string.Format("layout extents: ({0:F3},{1:F3})-({2:F3},{3:F3})", ext.MinPoint.X, ext.MinPoint.Y, ext.MaxPoint.X, ext.MaxPoint.Y));

    var psv = PlotSettingsValidator.Current;
    Log("");
    Log("--- available media containing 17 or B ---");
    var list = psv.GetCanonicalMediaNameList(lay);
    int shown = 0;
    foreach (string s in list) {
        if (s.IndexOf("17", StringComparison.OrdinalIgnoreCase) >= 0 ||
            s.IndexOf("ANSI_B", StringComparison.OrdinalIgnoreCase) >= 0) {
            Log("   " + s);
            shown++;
        }
    }
    Log("   (" + shown + " of " + list.Count + " total)");
    Log("");
    Log("--- current plot device list ---");
    var devs = psv.GetPlotDeviceList();
    foreach (string d in devs) Log("   DEV " + d);
}

Result

Status
success
Drawing file
C:\Users\sanja\OneDrive\_SurveyDisco\260714 - 285 Huckaby Rd, Brooks, GA 30205, USA\260714 - 285 Huckaby Rd.dwg
Message
Executed C3D-0258 (0 entities touched).
Entities
Duration
341 ms
Civil 3D
25.0.0.0

Log

media        : ANSI_B_(17.00_x_11.00_Inches)
plot config  : None
paper size   : 431.800 x 279.400 (mm)
rotation     : Degrees090
plot type    : Layout
units        : Inches
margins      : L6.350 B19.050 R6.350 T19.050
origin       : 0.000,0.000
layout extents: (0.290,0.290)-(17.290,11.290)

--- available media containing 17 or B ---
   ANSI_B_(11.00_x_17.00_Inches)
   ANSI_B_(17.00_x_11.00_Inches)
   ANSI_C_(17.00_x_22.00_Inches)
   ANSI_C_(22.00_x_17.00_Inches)
   (4 of 72 total)

--- current plot device list ---
   DEV None
   DEV OneNote (Desktop)
   DEV Microsoft Print to PDF
   DEV Lexmark MC3400 Series PostScript 3 Emulation
   DEV Canon iP8700 series WS
   DEV Adobe PDF
   DEV AutoCAD PDF (General Documentation).pc3
   DEV AutoCAD PDF (High Quality Print).pc3
   DEV AutoCAD PDF (Smallest File).pc3
   DEV AutoCAD PDF (Web and Mobile).pc3
   DEV Canon iP8700 series WS.pc3
   DEV Default Windows System Printer.pc3
   DEV DWF6 ePlot DETE.pc3
   DEV DWF6 ePlot.pc3
   DEV DWFx ePlot (XPS Compatible).pc3
   DEV DWG To PDF.pc3
   DEV PublishToWeb JPG.pc3
   DEV PublishToWeb PNG (Transparent).pc3
   DEV PublishToWeb PNG.pc3

Notes

What worked, what didn't, job-specific gotchas — flagged notes feed the recipes.

No notes yet.