CAD/CAM discussion forum > Other CAD/CAM Technology > GetPaperSize & GetPaperMargins tricks

GetPaperSize & GetPaperMargins tricks

  Subscribe Topic

Rank: 1

Hrvoje Krnić


posts: 0

Registered: 2010-7-15

Message 1 of 1

15-04-2010 09:06 . pm   |   View his/her posts only
here is some tricks for using GetPaperSize & GetPaperMargins.

Portrait and Landscape is usually orientation for paper.
To set paper to Landscape we set Layout.PlotRotation on zc90degrees. That meens we rotate paper for 90 degrees.
If we set rotation on zc90degrees we also rotate and margines. GetPaperSize & GetPaperMargins gives value for zc0degrees and we need recalculate margins value. For Landscape rotation margins recalculate like this:
LowerLeft.x = LowerLeft.y and LoverLeft.y = LowerLeft.x (simple we switch value for x and y) UpperRight.x = UpperReight.y and UpperRight.y = UpperReight.x (also switch value for x and y)
For Landscape rotation papersize simple switch Height and Width values.

See also