Share

acgsGetDisplayInfo

C++

Adesk::Boolean acgsGetDisplayInfo(
    int & drawingWidth, 
    int & drawingHeight, 
    int & aspectWidth, 
    int & aspectHeight
);

File

acgs.h

Description

This function retrieves the dimensions of AutoCAD's drawing area. The first two parameters will be filled in with the size of the actual drawing area, not including the screen menu, if present. The last parameters are filled in with the number of pixels per logical inch along the screen width and height, which are most commonly used to calculate the aspect ratio of the AutoCAD display. aspectWidth and aspectHeight are the same values as the Windows LOGPIXELX and LOGPIXELY values.

Returns Adesk::kTrue if successful. If a failure occurs, the parameters will remain unchanged and the function will return Adesk::kFalse.

Parameters

Parameters Description
drawingWidth Returns the width of the drawing graphics area
drawingHeight Returns the height of the drawing graphics area
aspectWidth Returns the number of pixels per logical inch along the screen width
aspectHeight Returns the number of pixels per logical inch along the screen height

Was this information helpful?