API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdCADDefinition Class > OdCADDefinition Methods > OdCADDefinition::setMediaSize Method
OdCADDefinition::setMediaSize Method
Syntax
C++
void setMediaSize(const Page::PaperUnits units, const double width, const double height);
Parameters 
Description 
const Page::PaperUnits units 
[in] A paper unit used for measuring the media size.  
const double width 
[in] A width of the media.  
const double height 
[in] A height of the media. 

Sets the media size for the CAD definition object.

The whole drawing will be published (using its extents) and scaled to fit the specified output media size.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.