Function ProNoteAttachFreeGet
Description
Retrieves the location of the note text. The attachment point is a parametric point with respect to the model display outline. For example, (0.5, 0.5, 0.5) would be the center, whereas (0.0, 0.0, 1.1) would be just outside one of the corners. Obtain the display outline from ProSolidDispoutlineGet().
Note: For notes placed on a flat-to-screen annotation plane, the coordinates will be screen coordinates instead of the parameters discussed above, and the Z entry should be ignored. These coordinates will be relative to a default window of size 1000 x 843.75. To convert this to screen coordinates in a window with outline (0,0) - (Wx,Wy), use 'if (x > 1000) Px = x-1000.0+Wx; else if (x > 0) Px = x/1000.0*Wx; else Px = x' for X, and similarly for Y.
Synopsis
#include <ProNote.h>
ProNoteAttachFreeGet
(
ProNoteAttach note_att
/* (In)
The handle for the ProNoteAttach
*/
double* r_p1
/* (Out)
The pointer to the the parameter in the X direction
*/
double* r_p2
/* (Out)
The parameter in the Y direction
*/
double* r_p3
/* (Out)
The parameter in the Z direction
*/
)
Returns
The function successfully retrieved the information.
The note attachment does not contain a free attachment.
A general error occurred and the function failed.
User Guide References
Isto foi útil?