API Reference > OdDb Classes > OdDbPlotSettingsValidator Class > OdDbPlotSettingsValidator Methods > OdDbPlotSettingsValidator::setClosestMediaName Method
OdDbPlotSettingsValidator::setClosestMediaName Method
Syntax
C++
virtual OdResult setClosestMediaName(OdDbPlotSettings* pPlotSettings, double paperWidth, double paperHeight, const PlotPaperUnits plotPaperUnits, bool matchPrintableArea) = 0;
Parameters 
Description 
OdDbPlotSettings* pPlotSettings 
[in] Pointer to the PlotSettings object.  
double paperWidth 
[in] Paper width.  
double paperHeight 
[in] Paper height.  
const PlotPaperUnits plotPaperUnits 
[in] Plot paper units.  
bool matchPrintableArea 
[in] True to match against printable area or physical media size. 

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

 

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 
Inches 
kMillimeters 
Millimeters 
kPixels 
Pixels 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.