Drawing Format Files
The format of a drawing refers to the boundary lines, referencing marks and graphic elements that appear on every sheet before any drawing elements are shown or added. These usually include items such as tables for the company name, detailers name, revision number and date. In a Creo Parametric drawing, you can associate a format file (.frm) with the drawing. This file carries all the format graphical information, and it can also carry some optional default attributes like text size and draft scale. The functions described in this section allow you to get and set the size of the drawing format.
Methods Introduced:
The methods
wfcWModel2D::GetFormatSize and
wfcWModel2D::SetFormatSize retrieve and set the size of the drawing format in the specified drawing as a
wfcModel.FormatSizeData object. You can add a standard or customize size format in the drawing.
Use the method wfcFormatSizeData::Create to create a drawing format in a specified drawing. The input arguments are:
• PaperSize—Specifies the size of the drawing using the enumerated data type pfcPlotPaperSize.
• Width—Specifies the width of the drawing in inches, when PaperSize is set to pfcVARIABLESIZEPLOT.
It specifies the width of the drawing in millimeters, when size is set to pfcVARIABLESIZE_IN_MM_PLOT.
|
This argument is ignored for all the other sizes of the drawing except pfcVARIABLESIZEPLOT and pfcVARIABLESIZE_IN_MM_PLOT.
|
• Height—Specifies the height of the drawing in inches, when the size is set to pfcVARIABLESIZEPLOT.
The methods
wfcFormatSizeData::GetPaperSize and
wfcFormatSizeData::SetPaperSize get and set the size of the drawing using the enumerated data type
pfcModel.PlotPaperSize.
The methods
wfcFormatSizeData::GetWidth and
wfcFormatSizeData::SetWidth get and set the width of the drawing.
The methods
wfcFormatSizeData::GetHeight and
wfcFormatSizeData::SetHeight get and set the height of the drawing.