The acedCmdS() function is equivalent to acedCommandS() but passes values to AutoCAD in the form of a result-buffer list. This is useful in situations where complex logic is involved in constructing a list of AutoCAD commands. The acutBuildList() function is useful for constructing command lists.
The acedCmdS() function also has the advantage that the command list can be modified at runtime rather than be fixed at compile time. Its disadvantage is that it takes slightly longer to execute. For more information, see the ObjectARX Reference.
The following sample code fragment causes AutoCAD to perform a REDRAW on the current graphics screen (or viewport).
struct resbuf *cmdlist; cmdlist = acutBuildList(RTSTR, "redraw", 0); if (cmdlist == NULL) { acdbFail("Couldn't create list\n"); return BAD; } acedCmdS(cmdlist); acutRelRb(cmdlist);