Share

acedCommandC Function

C++

ACAD_PORT int acedCommandC(
    AcEdCoroutineCallback pCallback, 
    void* pReturnFcnParms, 
    int rtype, 
    ...
);

File

acedCmdNF.h

Description

Executes one or more AutoCAD commands.

Parameters

Parameters Description
pCallback A coroutine callback passed in from acedCmdC
pReturnFcnParms Input pointer to pReturnFcn.
rtype First argument in the pair, representing the type of the data in the second argument; one of the result type codes defined in adscodes.h /*variable_arg_list*/ : Second argument in the pair, containing the data to pass to the command or zero or RTNONE to indicate the end of the argument pairs

Notes

The acedCommand "Coroutine" can be summarized as: anywhere you stop for user interaction in an acedCommand call will require you to use acedCommandC.

With fibers enabled, returning control to AutoCAD to process them is taken care up within the acedCommand logic, which switches fibers as needed. With fibers disabled, ARX commands and LISP must actually return to their caller. AutoCAD will invoke supplied “callback” functions to allow the ARX command and LISP logic to continue.

See Also

acedCommand Migration in the ObjectARX Release Notes.

Was this information helpful?