Author Topic: Set PaperMargins on Layout  (Read 1058 times)

0 Members and 1 Guest are viewing this topic.

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1451
  • Marco
Set PaperMargins on Layout
« on: May 21, 2018, 12:34:12 PM »
> ConfigName = "None"

I can get PaperMargins with: (vla-GetPaperMargins Layout 'MarginLowerLeft 'MarginUpperRight)

How can I Set PaperMargins?

Crank

  • Water Moccasin
  • Posts: 1503
Re: Set PaperMargins on Layout
« Reply #1 on: May 21, 2018, 12:40:12 PM »
We use the LIMITS (LIMMIN & LIMMAX)
Vault Professional 2023     +     AEC Collection

Marc'Antonio Alessi

  • Swamp Rat
  • Posts: 1451
  • Marco
Re: Set PaperMargins on Layout
« Reply #2 on: May 22, 2018, 02:54:05 AM »
If I run Example_GetPaperMargins from: https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2015/ENU/AutoCAD-ActiveX/files/GUID-2CF57709-4DBE-4CBE-A4AF-45D90C8F8B54-htm.html

in a empty metric DWG > printer = "None" I get:
____________________________________________________________________________

Paper plot information for the current drawing is: Layout1
The paper size for this layout is: 215.9 X 279.4 millimeter(s)

  The paper margins are:
  Left (6.35) millimeter(s)
  Right (6.35) millimeter(s)
  Top (6.35) millimeter(s)
  Bottom (6.35) millimeter(s)

The paper plot area for this layout is: 215.9 X 279.4 millimeter(s)
_____________________

Layout2
The paper size for this layout is: 215.9 X 279.4 millimeter(s)

  The paper margins are:
  Left (6.35) millimeter(s)
  Right (6.35) millimeter(s)
  Top (6.35) millimeter(s)
  Bottom (6.35) millimeter(s)

The paper plot area for this layout is: 215.9 X 279.4 millimeter(s)
____________________________________________________________________________


Is it possible to set PaperMargins to 0?

I need to set Layout to a vla-SetWindowToPlot based un my standard paper (example A3 = 210x297)
and see correct Paper backgroud and printable area without setting a printer.

          (vla-SetWindowToPlot LayObj PntT00 PntT02)
          (vla-put-PlotType LayObj acWindow)
          (vla-Put-CenterPlot LayObj 1)