Hello all, I think the answer could be found in 'Coordinate Systems and Transformations' sections in Pro/Toolkit User's guide. Here is a quote:
Drawing Coordinate System
The drawing coordinate system is a two-dimensional system that describes the location on a drawing relative to the bottom, left corner, and measured in drawing units. For example, on a U.S. letter-sized, landscape-format drawing sheet that uses inches, the top, right corner is (11, 8.5) in drawing coordinates.
The Pro/TOOLKIT functions that manipulate drawings generally use screen coordinates.
I think something like this should be added to the code err = ProDrawingSheetTrfGet( drawing, sht_id, size_w_name, drw_matrix ); err = ProUtilMatrixInvert(drw_matrix, drw_matrix_t); drw_point = 100.0; drw_point = 0.0; drw_point = 0.0; err = ProPntTrfEval(drw_point, drw_matrix_t, screen_pnt_start); drw_point = 0.0; drw_point = 100.0; drw_point = 0.0; err = ProPntTrfEval(drw_point, drw_matrix_t, screen_pnt_end); err = ProLinedataInit(screen_pnt_start, screen_pnt_end, curve);