API 文件集 > Miscellaneous > Object ProCavlayrule > Function ProCavlayruleRectDataGet
Function ProCavlayruleRectDataGet
Description
Get the information about a rectangular rule from the Cavity Layout Rule structure.
Synopsis
#include <ProCavlayrule.h>
ProCavlayruleRectDataGet
(
/* (In)
Cavity layout rule handle. It should be of rectangular or Variable built over rectangular type. A good programming style is to call first function ProCavlayruleRuleTypeGet() and make sure that one of the types it returns is Rectangular.
*/
/* (Out)
pointer to layout orientation type;
*/
int* cavity_num_x
/* (Out)
pointer to number of columns in the layout;
*/
int* cavity_num_y
/* (Out)
pointer to number of rows in the layout;
*/
double* cavity_step_x
/* (Out)
pointer to displacement step in x direction;
*/
double* cavity_step_y
/* (Out)
pointer to displacement step in y direction.
*/
)
Returns
The information is successfully retrieved;
The Rule is of uncompatible type.
Cannot inialize the pointers.
Sample Code References
這是否有幫助?