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 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.
Functions Introduced:
• ProDrawingFormatSizeSet()
• ProDrawingFormatSizeGet()
The function ProDrawingFormatSizeSet() sets the size of the drawing format in the specified drawing. You can add a standard or customize size format in the drawing. The input arguments are:
• drawing—Specifies the name of the drawing.
• drawing_sheet—Specifies the number of the drawing sheet where the drawing format must be set.
• size—Specifies the size of the drawing using the enumerated data type ProPlotPaperSize.
• width—Specifies the width of the drawing in inches, when size is set to VARIABLE_SIZE_PLOT.
It specifies the width of the drawing in millimeters, when size is set to VARIABLE_SIZE_IN_MM_PLOT.
|
Note:
|
This argument is ignored for all the other sizes of the drawing except VARIABLE_SIZE_PLOT and VARIABLE_SIZE_IN_MM_PLOT. In such cases specify the argument as PRO_VALUE_UNUSED.
|
• height—Specifies the height of the drawing in inches, when the size is set to VARIABLE_SIZE_PLOT.
It specifies the width of the drawing in millimeters, when the size is set to VARIABLE_SIZE_IN_MM_PLOT.
|
Note:
|
This argument is ignored for all the other sizes of the drawing except VARIABLE_SIZE_PLOT and VARIABLE_SIZE_IN_MM_PLOT. In such cases specify the argument as PRO_VALUE_UNUSED.
|
Use the function ProDrawingFormatSizeGet() to get the size of the drawing format in the specified drawing. The function returns the size of the drawing, and the width and height of the drawing in inches.