sds_entsel

int sds_entsel (const char *prompt, sds_name entity, sds_point point);


Select the object right here. . . *click*.


This function displays a prompt, then pauses for the user to select an object. The function returns the object selected and the point on the object where the user selected it.

The argument *prompt represents the text to prompt the user to select an object. When NULL, the program uses the default prompt, "Select Entity." The argument entity represents the name of the selected object. The argument point represents the point by which the object was selected.

This function returns RTCAN (when the user has canceled the request), RTERROR (when this function has failed), RTKWORD (when a call to sds_initget was made previously), or RTNORM, when this function succeeds.

NOTES

Example

sds_name entity1;

sds_point point1;

sds_entsel("\nPick an object: ",entity1,point1);

sds_redraw(NULL,4); Un-highlights everything.

sds_redraw(entity1,3); Highlights selection.

sds_printf("\nSelection point: (%f, %f, %f.) ",point1[0],point1[1],point1[2]);

Tell me about...

Programming Overview of SDS™ (Solutions Development System™)

sds_nentselp