NX Open C++ Reference Guide
|
Represents a PrintBuilder . More...
Represents a PrintBuilder .
This class is for use on Windows only and contains all information relating to printing. It is created using PlotManager .
The user must specify the sheets to be printed by setting the appropriate fields through the PlotSourceBuilder . The printer text and copies fields must be set in order to successfully print the provided sheets. The printer text is the path of the desired printer and the copies field represents the number of copies to be printed. This class also allows for the line widths to be scaled by setting the appropriate thin, normal, or thick scale factors.
To create a new instance of this class, use PlotManager::CreatePrintBuilder
Default values.
Property | Value |
---|---|
Orientation |
Landscape |
Created in NX5.0.1.
Specifies the output option when printing Current Display.
Specifies the paper size of the printed sheet.
int NXOpen::PrintBuilder::Copies | ( | ) |
Returns the number of copies.
This option specifies the number of copies to be printed.
Created in NX5.0.1.
License requirements : None
Returns the custom paper.
This will be used if the paper size is set to Custom.
Created in NX6.0.2.
License requirements : None
Returns the resolution of images created for printing shaded views.
Created in NX5.0.1.
License requirements : None
double NXOpen::PrintBuilder::NormalWidth | ( | ) |
Returns the normal width scale factor.
This number is used as a scale factor for normal width lines. It cannot be less than 0.0.
Created in NX5.0.1.
License requirements : None
Returns the orientation.
This options determines the orientation of the printed page.
Created in NX6.0.0.
License requirements : None
Returns the shaded image option.
The Current Display will be printed using the correct current shading if this option is set.
Created in NX5.0.1.
License requirements : None
Returns the paper.
This options determines the paper size used for printing. Note that all options may not available on all printers.
Created in NX6.0.0.
License requirements : None
Returns the printer text.
The printer field represents the full path name of the printer the user wishes to print to.
Created in NX5.0.1.
License requirements : None
bool NXOpen::PrintBuilder::RasterImages | ( | ) |
Returns the raster images option.
This option determines whether or not raster images will be used when printing.
Created in NX5.0.1.
License requirements : None
void NXOpen::PrintBuilder::SetCopies | ( | int | copies | ) |
Sets the number of copies.
This option specifies the number of copies to be printed.
Created in NX5.0.1.
License requirements : None
copies | copies |
void NXOpen::PrintBuilder::SetCustomPaper | ( | int | customPaper | ) |
Sets the custom paper.
This will be used if the paper size is set to Custom.
Created in NX6.0.2.
License requirements : None
customPaper | custompaper |
void NXOpen::PrintBuilder::SetImageResolution | ( | NXOpen::PrintBuilder::ImageResolutionOption | imageResolution | ) |
Sets the resolution of images created for printing shaded views.
Created in NX5.0.1.
License requirements : None
imageResolution | imageresolution |
void NXOpen::PrintBuilder::SetNormalWidth | ( | double | normalWidth | ) |
Sets the normal width scale factor.
This number is used as a scale factor for normal width lines. It cannot be less than 0.0.
Created in NX5.0.1.
License requirements : None
normalWidth | normalwidth |
void NXOpen::PrintBuilder::SetOrientation | ( | NXOpen::PrintBuilder::OrientationOption | orientationOption | ) |
Sets the orientation.
This options determines the orientation of the printed page.
Created in NX6.0.0.
License requirements : None
orientationOption | orientationoption |
void NXOpen::PrintBuilder::SetOutput | ( | NXOpen::PrintBuilder::OutputOption | outputOption | ) |
Sets the shaded image option.
The Current Display will be printed using the correct current shading if this option is set.
Created in NX5.0.1.
License requirements : None
outputOption | outputoption |
Sets the paper.
This options determines the paper size used for printing. Note that all options may not available on all printers.
Created in NX6.0.0.
License requirements : None
paper | paper |
void NXOpen::PrintBuilder::SetPrinterText | ( | const NXString & | printer | ) |
Sets the printer text.
The printer field represents the full path name of the printer the user wishes to print to.
Created in NX5.0.1.
License requirements : None
printer | printer |
void NXOpen::PrintBuilder::SetRasterImages | ( | bool | rasterImages | ) |
Sets the raster images option.
This option determines whether or not raster images will be used when printing.
Created in NX5.0.1.
License requirements : None
rasterImages | rasterimages |
void NXOpen::PrintBuilder::SetShadedGeometry | ( | bool | shadedGeometry | ) |
Sets the shaded geometry as wireframe option.
If set to true, this option will show shaded objects as wireframes. The shaded objects will be represented as shaded if this option is set to false.
Created in NX5.0.1.
License requirements : None
shadedGeometry | shadedgeometry |
void NXOpen::PrintBuilder::SetThickWidth | ( | double | thickWidth | ) |
Sets the thick width scale factor.
This number is used as a scale factor for thick width lines. It cannot be less than 0.0.
Created in NX5.0.1.
License requirements : None
thickWidth | thickwidth |
void NXOpen::PrintBuilder::SetThinWidth | ( | double | thinWidth | ) |
Sets the thin width scale factor.
This number is used as a scale factor for thin width lines. It cannot be less than 0.0.
Created in NX5.0.1.
License requirements : None
thinWidth | thinwidth |
void NXOpen::PrintBuilder::SetWhiteBackground | ( | bool | whiteBackground | ) |
Sets the white background option.
When printing a shaded view, this option allows for the background to be white. Only set to true if printing Current Display and "Shaded Image" is also set to true.
Created in NX5.0.1.
License requirements : None
whiteBackground | whitebackground |
bool NXOpen::PrintBuilder::ShadedGeometry | ( | ) |
Returns the shaded geometry as wireframe option.
If set to true, this option will show shaded objects as wireframes. The shaded objects will be represented as shaded if this option is set to false.
Created in NX5.0.1.
License requirements : None
Returns the Source builder.
The Source builder contains all data involving the sheets to to be printed.
Created in NX5.0.1.
License requirements : None
double NXOpen::PrintBuilder::ThickWidth | ( | ) |
Returns the thick width scale factor.
This number is used as a scale factor for thick width lines. It cannot be less than 0.0.
Created in NX5.0.1.
License requirements : None
double NXOpen::PrintBuilder::ThinWidth | ( | ) |
Returns the thin width scale factor.
This number is used as a scale factor for thin width lines. It cannot be less than 0.0.
Created in NX5.0.1.
License requirements : None
Returns the white background option.
When printing a shaded view, this option allows for the background to be white. Only set to true if printing Current Display and "Shaded Image" is also set to true.
Created in NX5.0.1.
License requirements : None