cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

RE: toolkits digest: June 08, 2004

FV
Moonstone

RE: toolkits digest: June 08, 2004

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[0] = 100.0;
drw_point[1] = 0.0;
drw_point[2] = 0.0;
err = ProPntTrfEval(drw_point, drw_matrix_t,
screen_pnt_start);
drw_point[0] = 0.0;
drw_point[1] = 100.0;
drw_point[2] = 0.0;
err = ProPntTrfEval(drw_point, drw_matrix_t,
screen_pnt_end);
err = ProLinedataInit(screen_pnt_start, screen_pnt_end, curve);

HIH
Feliks.


> ----------
1 REPLY 1

RE: toolkits digest: June 08, 2004

Hi all,
Feliks, thank you very, very much.
You are sure, the answer is in coordinate systems transformations.

Damir