The function acedDragGen() prompts the user to drag a group of selected objects, as shown in the following example:
int rc;
ads_name ssname;
ads_point return_pt;
// Prompt the user for a general entity selection.
if (acedSSGet(NULL, NULL, NULL, NULL, ssname) == RTNORM)
// The newly selected entities
rc = acedDragGen(ssname,
"Drag selected objects", // Prompt
0, // Display normal cursor (crosshairs)
dragsample, // Transformation function
return_pt); // Set to the specified location.
The fourth argument points to a function that does the entity transformation. See Transformation of Selection Sets for examples of dragsample() and acedDragGen().