Finally, acutBuildList() is called in conjunction with acedCmd(), which takes a result-buffer list to invoke AutoCAD commands, and with acedInvoke(), which invokes an external function from a different ObjectARX application.
The following sample code fragment calls acutBuildList() and acedInvoke() to invoke the RESET command defined by the sample application gravity.c:
struct resbuf *callist, *results = NULL; callist = acutBuildList(RTSTR, "c:reset", 0); if (acedInvoke(callist, &results) == RTERROR) acdbFail("Cannot run RESET -- GRAVITY program may not be loaded\n"); acutRelRb(callist); acutRelRb(results);