Category Drawings and detail, Object ProDrawing

Function ProDrawingPosToLocgrid


Description
Outputs the location grid column and row for a specified location in screen coordinates.
Synopsis
#include <ProDrawing.h>
ProErrorProDrawingPosToLocgrid(
ProDrawing p_draw
/* (In)
The drawing
*/
int sheet
/* (In)
The sheet number
*/
ProVector pos
/* (In)
The location in screen coordinates
*/
ProName column_label
/* (Out)
The label on the corresponding location grid column.
*/
ProName row_label
/* (Out)
The label on the corresponding location grid row.
*/
)
Returns
PRO_TK_NO_ERROR
PRO_TK_BAD_INPUTSDrawing is invalid, or specified sheet does not exist
PRO_TK_NOT_EXISTNo location grid is defined on the specified sheet
PRO_TK_OUT_OF_RANGE'pos' is outside of the location grid

Manual References:

  1. Drawings: Access Drawing Location in Grid