.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to check print in landscape

1 REPLY 1
Reply
Message 1 of 2
wesbird
277 Views, 1 Reply

How to check print in landscape

Hi

  I am working on a batch print application. I check the page info in current layout. I like to know if it's landscape or portrait? How I can do it in the code? 

 

 

 

Thank you

Wes

Windows 10 64 bit, AutoCAD (ACA, Map) 2023
1 REPLY 1
Message 2 of 2
Virupaksha_aithal
in reply to: wesbird

You need to use PlotSettings.PlotRotation along with PlotSettings.PlotPaperSize to find the type of plotting (Portrait or Landscape)

 

Example, paper size "ANSI A (8.50 x 11.00 Inches)" is selected in the active layouts page setup. If you select the Drawing Orientation as Portrait, you will find that PlotRotation value for that layout will be ac0degrees. Now change the paper size to "ANSI A (11.00 x 8.50 Inches)". Now you will find the PlotRotation value will be ac90degrees for Portrait option.

 

This is because the width of the paper is greater than the height of the paper and hence for a Portrait print the drawing has to be rotated by the 90 degrees, where as this is not required if the papers width is less than the height of the paper.

 

Hope this help.

 

Virupaksha Aithal

Autodesk Developer network



Virupaksha Aithal KM
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost