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.
- This function ignores the current object snap setting.
- If the user selects a complex object, such as a block or polyline, this function returns the nearest block (or polyline) header. If you want the nearest attribute or polyline vertex, use function sds_nentselp instead.
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,point1,point1);
Tell me about...
Programming Overview of SDS (Solutions Development System)