C++
int acedRetVal( const struct resbuf * rbuf );
File
acedads.h
Description
Returns the value in the result buffer to AutoLISP. The AutoLISP expression that invoked the external function returns the result as built-in and user-defined AutoLISP functions do.
The acedRetVal() function passes the contents of the result buffer, not its address. The result buffer must be initialized and must contain a valid result type code and value (for example, RTSHORT or RT3DPOINT, but notRTLONG).
An external function can make more than one call to value-return functions upon a single kInvkSubrMsg message, but the AutoLISP function returns only the value passed it by the last value-return function invoked.
The acedRetVal() function returns RTNORM if successful; otherwise, it returns RTERROR.
Parameters
Parameters | Description |
---|---|
rbuf | Result buffer |