Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbPlotSettingsValidator::setClosestMediaName Method
Syntax
C++
virtual OdResult setClosestMediaName(OdDbPlotSettings* pPlotSettings, double paperWidth, double paperHeight, const PlotPaperUnits plotPaperUnits, bool matchPrintableArea) = 0;

Sets the media name closest to the specified parameters for the specified PlotSettings object. 

 

Parameters
Description
pPlotSettings
[in] Pointer to the PlotSettings object.
paperWidth
[in] Paper width.
paperHeight
[in] Paper height.
plotPaperUnits
[in] Plot paper units.
matchPrintableArea
[in] True to match against printable area or physical media size.

The plot paper units determine the units of the margins, offsets, paper size, and drawing units. 

plotPaperUnits must be one of the following: 

 

Name
Value
Description
kInches
0
Inches
kMillimeters
1
Millimeters
kPixels
2
Pixels
Copyright © 2002-2022. Open Design Alliance All rights reserved.